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 Ranveer Kumar <ra...@gmail.com> on 2010/02/09 13:33:41 UTC

Re: joining two field for query (Solved)

Hi Ahmet,

Thank you very much..
my problem solved..

with regards


On Tue, Feb 9, 2010 at 5:38 PM, Ahmet Arslan <io...@yahoo.com> wrote:

>
> > I am searching by "nokia" and resulting (listing) 1,2,3
> > field with short
> > description.
> > There is link on search list(like google), by clicking on
> > link performing
> > new search (opening doc from index), for this search
> >
> > I want to join two fields:
> > id:1 + queryString ("nokia samsung") to return only id:1
> > record and want to
> > highlight the field "nokia samsung".
> > something like : "q=id:1 + body:nokia samsung"
> >
> > basically I want to highlight the query string when
> > clicking on link and
> > opening the new windows (like google cache).
>
> When the user clicks document (id=1), you can use these parameters:
> q=body:(nokia samsung)&fq=id:1&hl=true&hl.fl=body
>
>
>
>
>