开发者

How to get the fields that match the request?

开发者 https://www.devze.com 2023-04-06 21:39 出处:网络
I need your help to get more information in my solR query\'s response. i\'ve got a simple input text which allows me to query several fields in the same query.

I need your help to get more information in my solR query's response.

i've got a simple input text which allows me to query several fields in the same query.

So my query looks like this "q=email:martyn+OR+name:martynn+OR+commercial:martyn ..."

Is it possible in the response to know the fields where "martyn开发者_如何转开发n" has been found?


Add this to your query string:

hl=true&hl.fl=*

which tells solr to highlight the fields where the matches were made.

This solr wiki page describes all the highlighting parameters available with solr.

0

精彩评论

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