-
Notifications
You must be signed in to change notification settings - Fork 67
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
Does not seem to support singular and plural #72
Comments
@dcai-icfi I'm not sure what you have tried, but would using a stemmer maybe help with this problem? I would give the SnowballPorterFilterFactory filter a try. You can set this up in the schema / managed_schema file. You'd probably need to do the stemming at both index and query time, so something like this might work: Example text_general field
From my understanding, when storms is stored in a document, then the stemmer will store "storms" as "storm" at index time. And since we include the stemmer at query time as well, the user's query for "storms" will be converted to "storm," and the synonyms should match up. The list of filters can be found here if you would like to try other combinations of them: You can view the results of these changes in the Analysis menu: The left column shows how the value would be stored at index time, and the right column shows how the user's query would be transformed to at query time. Great screen to play around with filters and to see kind of what they are doing. Sorry if this is something you already knew, and hopefully it helps out a little bit ^^; |
Thanks @Mykezero ! |
@dcai-icfi Yeah, I couldn't find any default way to do that with filters. I usually do add the plurals (table tent, table tents) but it would be cool if that was handled automatically. |
For example, I have
"Storm,Hurricane,Tropical Storm" in the file,
Searching 'storms' will not get the same set of results. Do I have to add 'storms' to the list?
Thanks,
Dong
The text was updated successfully, but these errors were encountered: