-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proximity search #477
Add proximity search #477
Conversation
Seems to work for whole words nicely. The issue mentions also working with incomplete words eg |
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) |
@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? |
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:Tarquinium ~:5 libros
matches because:5
means up to five wordsTarquinium ~3:5 libros
matches because3:5
means between three and five words, butTarquinium ~3:5 adiit
would not match because there are only 2 intervening words