Hello Mehdi,

You might need to concatenate the fields and create a combined value
such as GFI-2 instead of leaving them separate, or do both in the same
document so you have the option of filtering by either.

--j

On Tue, Mar 18, 2008 at 10:09 AM, émile coué <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  Thank you Otis Gospodnetic, but experience_company:GFI AND
>  experience_years:2 will give me both docs, it should return just the first.
>  My need is : poeple having GFI in "experience_company" and 2 in
>  "experience_years" where GFI and 2 are in same position in the vector.
>
>  I've told :
>
>
>
>  > The "experience_company", "experience_years" are linked, so the value of
>  > the
>  > first "experience_company" is linked with the first "experience_years" and
>  > the second with the second and so on ...
>  >
>
>  Thanks
>  Mehdi LAHLOU
>
>
>
>
>
>  Otis Gospodnetic wrote:
>  >
>  > Hi,
>  >
>  > Go to your Solr admin page and enter this in that big text area:
>  >
>  > experience_company:GFI AND experience_years:2
>  >
>  > Then look at the URL after you've submitted the search.
>  >
>  > Otis
>  > --
>  > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
>  >
>  > ----- Original Message ----
>  > From: émile coué <[EMAIL PROTECTED]>
>  > To: solr-user@lucene.apache.org
>  > Sent: Tuesday, March 18, 2008 9:02:42 AM
>  > Subject: search in related multiValued fields
>  >
>  >
>  > Hi,
>  >
>  > I am stuck at the search in related multiValued fields.
>  > Suppose I have the following data:
>  > <doc>
>  >     <str Name="id"> in-550803 </ str>
>  >     <str Name="name"> Ibrahim EL AMRANI </ str>
>  >     <arr Name="experience_company">
>  >        <str> GFI  </ str>
>  >        <str> OUTSOURCIA </ str>
>  >     </ Arr>
>  >     <arr Name="experience_years">
>  >        <str> 2 </ str>
>  >        <str> 2 </ str>
>  >     </ Arr>
>  > <doc>
>  > <doc>
>  >     <str Name="id"> com-550804 </ str>
>  >     <str Name="name"> Mehdi LAHLOU </ str>
>  >     <arr Name="experience_company">
>  >        <str> Smart Development </ str>
>  >        <str> GFI </ str>
>  >     </ Arr>
>  >     <arr Name="experience_years">
>  >        <str> 2 </ str>
>  >        <str> 1 </ str>
>  >     </ Arr>
>  > <doc>
>  >
>  > The "experience_company", "experience_years" are linked, so the value of
>  > the
>  > first "experience_company" is linked with the first "experience_years" and
>  > the second with the second and so on ...
>  >
>  > If I want, for example, to select the people whose fields
>  > "experience_company" equal "GFI", and "experience_years" equal 2, how to
>  > express the request? q =????
>  >
>  > Thanks
>  > --
>  > View this message in context:
>  > 
> http://www.nabble.com/search-in-related-multiValued-fields-tp16120730p16120730.html
>  > Sent from the Solr - User mailing list archive at Nabble.com.
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/search-in-related-multiValued-fields-tp16120730p16125917.html
>
>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to