I've set up SOLR, and added a document to the example 'collection1'.
<doc>
<str name="id">3007WFP</str>
<str name="name">Fishing</str>
<str name="type">Ladies</str>
</doc>
I can query it ok in the interface using
name:*fishing*
but I would like to get stemming to work, so that I can e.g. type fish
and get this document due to the word fishing
being stemmed. I'd also like to be able to find Ladies
when Lady
is searched for.
However I have tried the query
name:fish
and I get no results. I didn't add the wildcard as I know that will match, and only want to test the stemming function.
I've changed the schema type of both the name and type fields to text_en
which I believe includes stemming - restarted SOLR, and reindexed (clicked optimise).
Is there something I'm missing or doing wrong, is the query syntax different when you want to use stemming?
Another strange issue is after the change from text_general
to text_en
a search for
name:Fishing
produces no results, even though it should be an exact match..