What you are trying to achieve is a kind of join on the ids. The id of Document C and D is as a foreign key in the reference data values for Document A and B.
What you are trying to achieve is a kind of join on the ids. The id of Document C and D is as a foreign key in the reference data values for Document A and B You may want to check the join patch - https://issues.apache. Org/jira/browse/SOLR-2272 If it doesn't work, you may end up indexing the documents and their reference data as a single entity, so that you can search across and filter accordingly.
From my research, the join patch is the closest to doing what I want in one query. However, I'm using Solr 1. X and the patch will be ready for 4.0.In the meantime, I've constructed my own join out of multiple queries and performance is good.
– Matt Sep 27 at 22:28.
You can specify which fields your query should return and then just do the second query where you filter by referenceDataValues:returnedID But you need to test how it works (i am thinking about performance) when the result of the first query contains lots of IDs.
That's what I essentially am trying to do. However, is it possible to get this result in one query? Where you have "referenceDataValues:returnedID", I want to embed a query returning one or more id values in place of "returnedID".
But I'm not sure the nested query can actually return the string(s) from the id field (the query always returns the documents themselves, right? ). – Matt Sep 21 at 16:29 So, by embedding this query within another: q="hello world"&fq=type:Customer&fl=id , I am hoping a bunch of id strings are returned, not a bunch of documents.
Then the surrounding query filters on referenceDataValues using those ids. – Matt Sep 21 at 16:33 I understand. I don't know if it is possible to do it in one query.
The suggestion offered by Jatendra Patil looks like would solve your problem from one query. Using my approach you need to do 2 queries. If you use fl=id in your query it will only return one field in the document.
– Dorin Sep 22 at 7:06.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.