-
Notifications
You must be signed in to change notification settings - Fork 15
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
In search, a symbol for "any non-numeric character" #53
Comments
Probably not possible using Lucene syntax. In regular expressions, that would be a character set like [^A-Za-z], but I don't think Lucene supports regex. We could add support at the filter level if the use cases are compelling enough to justify breaking from Lucene. |
"support at the filter level"? Does that mean rewriting Lucene? |
No, it means defining a new, SmSn-specific query syntax, and mapping expressions in that syntax to Lucene syntax (then filtering on the results). Since Lucene syntax is so well-known, the pros (more expressive queries) would have to be pretty significant to outweigh the cons (a syntax everyone has to learn from scratch, and an implementation we have to develop, test, and maintain). |
I'm not (yet) suggesting any radical changes to Lucene, just a symbol for non-alphanumeric characters. But while we're on the subject ... I have nodes that look like this: |
You suggested you want more use cases. Consider (I did this reacently) searching for notes about yourself, by searching for (probably among other words) the word "me". If you want to find it when it's adjacent to punctuation, you'll have to surround it with |
If I'm searching for
sum
, I'll probably search for*sum*
. Otherwise I'll miss(sum
orsum.
or other punctuation-adjoined instances of the word. However, by using*
I expand the search to includesumo
andassume
and other things I'm not looking for.I googled for a while and still don't know whether it's possible.
The text was updated successfully, but these errors were encountered: