david
david

Reputation:

solr translating plurals to singular, do not want it to

i have a field where there are items that are plurals, and used as very specific locators, so i do a solr search type:articles, and it translates it into :

<str name="rawquerystring">type:articles

type:articles type:articl

it gets really frustrating, is there a way i can disable this?

Upvotes: 1

Views: 562

Answers (1)

Gandalf
Gandalf

Reputation: 9855

My guess is you are using the StandardAnalyzer to parse your query, which does stemming by default. Just use a simple tozenizer, or Whitespace Analyzer to parse the query instead. But you also need to use the same analyzer when you ingest documents into your Lucene (SOLR) index to get correct results.

Upvotes: 3

Related Questions