lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: search in related multiValued fields
Date Tue, 18 Mar 2008 16:51:38 GMT
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é <lahlou1980@gmail.com>
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.





Mime
View raw message