Help with Examine / Lucene Query
# help-with-umbraco
d
Hello, seems there is not much action in the Umbraco forums. No answer to my question since 5 days. So if anyone has experience with Examine/Lucene, would be nice if you would have a look. 🙂 https://our.umbraco.com/forum/using-umbraco-and-getting-started/112405-searching-for-content-with-wildcard-with-examine Thanks
n
Hey @danbord You can't have a wildcard as the first character as specified here. This means that you wouldn't match "ceiling" on the query "ling": https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#Wildcard%20Searches (Updated Examine docs on wildcards: https://shazwazza.github.io/Examine/articles/searching.html#wildcards) You might what to look into proximity or fuzzy searching instead: https://shazwazza.github.io/Examine/articles/searching.html#proximity
d
Thanks for your reply @Nikcio . I read that there is a *query.QueryParser.AllowLeadingWildcard * but the QueryParser doesn't seem to exist in v12 ! :/ I find its pretty odd not to allow leading wildcard. Its been a basic feature of any database for decades now. Unless there's someting I don't fully understand.
n
I actually think there might be a way to go about it but you would have to search for it in the examine repository. I think it has to do with performance that it isn't allowed by lucene but i dont know for sure