Solr: Searching fields those do not match fully
I have a Index with field productname.
I have following in the index.
- ".net framework"
- "microsoft .net开发者_StackOverflow中文版 framework programming"
- ".net framework 4.0 programming"
- "Microsoft programming"
If I put the query ".net framework" it should search 1st 3 items. If I put "Microsoft Programming" it should search 2 and 4. If only programming then last 3.
I have read dictionary,stemming, text analysis. but unable to do above.
What changes should I make in the schema and query to full-fill above.
Thanks a ton, Shrika
A sample schema will certainly be helpful for people to diagnose your problem. When I have similar issues, one thing I tried is to use "Field Analysis" tool comes with Solr Admin tool. It'll show you how the query and value are transformed and if they match or not.
精彩评论