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 "Vinay B," <vy...@gmail.com> on 2013/08/23 00:38:38 UTC

SOLR search by external fields

What we need is similar to what is discussed here, except not as a filter
but as an actual query:
http://lucene.472066.n3.nabble.com/filter-query-from-external-list-of-Solr-unique-IDs-td1709060.html

We'd like to implement a query parser/scorer that would allow us to combine
SOLR searches with searching external fields. This is due to the limitation
of having to update an entire document even though only a field in the
document needs to be updated.

For example we have a database table called document_attributes containing
two columns document_id, attribute_id. The document_id corresponds to the
ID of the documents indexed is SOLR.

We'd like to be able to pass in a query like:

attribute_id:123 OR text:some_query
(attribute_id:123 OR attribute_id:456) AND text:some_query
etc...

Can we implement a plugin/module in SOLR that's able to parse the above
query and then fetch the document_ids associated with the attribute_id and
combine the results with the normal processing of SOLR search to return one
set of results for the entire query.

We'd appreciate any guidance on how to implement this if it is possible.

Re: SOLR search by external fields

Posted by SolrLover <bb...@gmail.com>.
Did you look here?

https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes




--
View this message in context: http://lucene.472066.n3.nabble.com/SOLR-search-by-external-fields-tp4086197p4086408.html
Sent from the Solr - User mailing list archive at Nabble.com.