Geepalem
2014-04-27 19:13:40 UTC
Hi,
I have added SnowballPorterFilterFactory filter to field type to make
singular and plural search terms return same results.
So below queries (double quotes around search term) returning similar
results which is fine.
http://localhost:8080/solr/master/select?q=page_title_t:"product*"
http://localhost:8080/solr/master/select?q=page_title_t:"products*"
But when I have analyzed results, in both result sets, documents which dont
start with words "Product" or "products" didnt come though there are few
documents available.
So I have added * as prefix and suffix to search term without double quotes
to do wildcard search.
http://localhost:8080/solr/master/select?q=page_title_t:*product*
http://localhost:8080/solr/master/select?q=page_title_t:*products*
Now, stemming is not working as above second query is not returning similar
results as query 1.
If double quotes are added around search term then its returning similar
results but results are not as expected. With double quotes it wont return
results like "Old products", "New products", "Cool Product".
It will only return results with the values like "Product 1", "Product
2","Products of USA".
Please suggest or guide how to make stemming work with wildcard search.
Appreciate immediate response!!
Thanks,
G. Naresh Kumar
--
View this message in context: http://lucene.472066.n3.nabble.com/Stemming-not-working-with-wildcard-search-tp4133382.html
Sent from the Solr - User mailing list archive at Nabble.com.
I have added SnowballPorterFilterFactory filter to field type to make
singular and plural search terms return same results.
So below queries (double quotes around search term) returning similar
results which is fine.
http://localhost:8080/solr/master/select?q=page_title_t:"product*"
http://localhost:8080/solr/master/select?q=page_title_t:"products*"
But when I have analyzed results, in both result sets, documents which dont
start with words "Product" or "products" didnt come though there are few
documents available.
So I have added * as prefix and suffix to search term without double quotes
to do wildcard search.
http://localhost:8080/solr/master/select?q=page_title_t:*product*
http://localhost:8080/solr/master/select?q=page_title_t:*products*
Now, stemming is not working as above second query is not returning similar
results as query 1.
If double quotes are added around search term then its returning similar
results but results are not as expected. With double quotes it wont return
results like "Old products", "New products", "Cool Product".
It will only return results with the values like "Product 1", "Product
2","Products of USA".
Please suggest or guide how to make stemming work with wildcard search.
Appreciate immediate response!!
Thanks,
G. Naresh Kumar
--
View this message in context: http://lucene.472066.n3.nabble.com/Stemming-not-working-with-wildcard-search-tp4133382.html
Sent from the Solr - User mailing list archive at Nabble.com.