开发者

Solr: Searching fields those do not match fully

开发者 https://www.devze.com 2023-02-07 23:24 出处:网络
I have a Index with field productname. I have following in the index. \".net framework\" \"microsoft .net开发者_StackOverflow中文版 framework programming\"

I have a Index with field productname.

I have following in the index.

  1. ".net framework"
  2. "microsoft .net开发者_StackOverflow中文版 framework programming"
  3. ".net framework 4.0 programming"
  4. "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.

0

精彩评论

暂无评论...
验证码 换一张
取 消