UCL / frrant

2 stars 0 forks source link

Add proximity search #477

Closed tcouch closed 1 month ago

tcouch commented 2 months ago

closes #299

As described in the issue, this introduces the ability to carry out a proximity search where a search string like:

Tarquinium ~5 ferens

Would match:

Tarquinium Superbum regem adiit nouem libros ferens

In the example above ~5 represents exactly five intervening words. You can also specify upper and lower bounds for the number of intervening words:

acholyn commented 1 month ago

Seems to work for whole words nicely. The issue mentions also working with incomplete words eg Marc ~1 varro should still return Marcus Varro but it doesn't return anything currently

acholyn commented 1 month ago

Would be good to update the helptext to reflect that the ambiguity is possible but you need to add the wildcard character (I didn't realise this)

tcouch commented 1 month ago

@acholyn I've updated the help text as well as fixing another issue which was stopping search snippets from working. Do you want to have another look before I merge?