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.