You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by bryan rasmussen <ra...@gmail.com> on 2011/04/15 14:32:15 UTC

newbie - filter to only show queried field when query is free text

Hi,

If I want to filter a search result to not return all fields as per
the default but I don't know what field my hits will be in.

This is basically for unstructured document type data, for example
large HTML or DOCBOOK documents.

thanks,
Bryan Rasmussen

Re: newbie - filter to only show queried field when query is free text

Posted by Marek Tichy <ma...@gn.apc.org>.
Hi
There may be better ways but as far as my knowledge goes, I'd try to use
the highhlighting component, with hl.requireFieldMatch the hightlighting
response only includes fields where hightlights were applied (match was
found), which is probably what you want.

Best
 Marek Tichy
> Hi,
>
> If I want to filter a search result to not return all fields as per
> the default but I don't know what field my hits will be in.
>
> This is basically for unstructured document type data, for example
> large HTML or DOCBOOK documents.
>
> thanks,
> Bryan Rasmussen
>
>