Hi,

On Mon, May 23, 2011 at 7:27 PM, bryan rasmussen
<rasmussen.br...@gmail.com>wrote:

> Let us say I have 3 fields I index
> f1, f2, f3.
>
> f1 and f2 are copied to f4.
> f4 is the default searched field.
>
>
> There is a value that is found in f2 and f3.
>
> When I am searching in f3 I want to return only f3 and none  other.
>

You can explicitly specify the field f3:keyword and also use the 'fl'
parameter to restrict the fields that you want in the response.


> when I am searching in f4 I do not want to return f3.
> I only want to return f1 if it has the value that is found in the search.
>

In this case, restrict f3 in the response again using the 'fl' parameter.

>
> Is this doable? Can you show me an example?
>

You can take a look at 'fl' parameter to control the fields that are
returned in the response. Details-
http://wiki.apache.org/solr/CommonQueryParameters#fl

<http://wiki.apache.org/solr/CommonQueryParameters#fl>Alternatively, you can
write your own handlers for custom operations.

<http://wiki.apache.org/solr/CommonQueryParameters#fl>Regards,
Anuj

>
> Thanks,
> Bryan Rasmussen
>

Reply via email to