J.Zil
J.Zil

Reputation: 2449

Solr only returning exact matches

I finally got my Solr working. It indexes posts and I can search it from my site. I have run into one problem though.

If I have an entry as "England", when I search "England" on my site, or "england" I get the result returned. When I search "Eng" it tells me there are no results. I dont want people to have to put in *'s for queries.

My question is this, how do I make it so it doesn't have to be an exact match for results to be returned.

Upvotes: 0

Views: 426

Answers (1)

Paige Cook
Paige Cook

Reputation: 22555

To achieve this type of search behavior, you will need to implement the EdgeNGramFilterFactory

Upvotes: 3

Related Questions