You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by swapnilagarwal <sw...@gmail.com> on 2010/02/08 07:11:53 UTC
Solr Associating documents
I am creating .xml files which are then posted to solr for creating
documents.
The xml files have <add></add> tags in which there are several <doc></doc>
tags.
Now consider an example where we data for a car. We would like to add one
doc related to some features of the car like mileage, horsepower e.t.c. We
will add another doc containing information about the price, service about
the same car.
Now both the above docs will contain an ID representing the same car.
Now when search is performed, how do I get the result combined from both the
above docs.
For instance, if I search for feature:13KM/L price:60K, I want the search
results having combined score from the docs containing the same car ID.
Merging these docs is not favourable as I want to add,delete and upadate the
features for a particular car.
Thanks in advance!!
--
View this message in context: http://old.nabble.com/Solr-Associating-documents-tp27495702p27495702.html
Sent from the Solr - Dev mailing list archive at Nabble.com.
Re: Solr Associating documents
Posted by Jan Høydahl / Cominvent <ja...@cominvent.com>.
Please re-post your question to the solr-user list which is a more appropriate place.
--
Jan Høydahl - search architect
Cominvent AS - www.cominvent.com
On 8. feb. 2010, at 07.11, swapnilagarwal wrote:
>
> I am creating .xml files which are then posted to solr for creating
> documents.
> The xml files have <add></add> tags in which there are several <doc></doc>
> tags.
> Now consider an example where we data for a car. We would like to add one
> doc related to some features of the car like mileage, horsepower e.t.c. We
> will add another doc containing information about the price, service about
> the same car.
> Now both the above docs will contain an ID representing the same car.
> Now when search is performed, how do I get the result combined from both the
> above docs.
> For instance, if I search for feature:13KM/L price:60K, I want the search
> results having combined score from the docs containing the same car ID.
>
> Merging these docs is not favourable as I want to add,delete and upadate the
> features for a particular car.
>
> Thanks in advance!!
> --
> View this message in context: http://old.nabble.com/Solr-Associating-documents-tp27495702p27495702.html
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>