KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using solr, set up at localhost:8983 I am basically using the out of the box example. I have entered one document with a name "Car", and another with a name "Cars". If I visit either: http://localhost:8983/solr/select?q=Car or http://localhost:8983/solr/select?q=Cars I would expect to get both documents. At the moment, I don't. In the fields tag of "schema.xml", the entry for "name" is: "text_general" has the following "analyzers" (without the stemmers): <analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> I tried to add a stemmer to each analyzer. I tried: <filter class="solr.PorterStemFilterFactory"/> <filter class="solr.KStemFilterFactory"/> <filter class="solr.EnglishMinimalStemFilterFactory"/> Doing so makes it such that searching for "Cars" will find "Car", but I can never find "Cars". Should it be possible to find "Cars"? Any help would be greatly appreciated. Thank you.
Tags (comma-separated)
Save Edits
Cancel