Merging Solr query results through SolrNet -
I am using serial v3.6.1 and successfully managed index data, as well as apache boxer index binary I am also using items too. I'm using SolrNet
to pull out this data. However, I have an issue through which I want to add 2 results together.
Now consider the following XML (this is for illustration purposes only):
& lt; Doc & gt; & Lt; ID & gt; 263 & lt; / Id & gt; & Lt; Title & gt; This title is & lt; / Title & gt; & Lt; Summary & gt; This summary is & lt; Summary / & gt; & Lt; Binary_id & gt; 994,832 & lt; / Binary_id & gt; & Lt; / Doc & gt; & Lt; Doc & gt; & Lt; ID & gt; 994,832 & lt; / Id & gt; & Lt; Title & gt; This title is & lt; / Title & gt; & Lt; Summary & gt; This summary is & lt; Summary / & gt; & Lt; Text & gt; This is the content of binary & lt; / Text & gt; & Lt; / Doc & gt;
Is it possible to merge the above two results together (via SolarNet) when a user searches for this binary content So it also gives data in the first object?
In my example, you can see that the first thing is the id of binary (994832), so my initial idea is that I need to do 2 questions and merge them somehow?
Actually to make sure how to do this so that any help will be greatly appreciated.
You can try to make some cowards with some type of query, though be careful with the performance effects Be there. Here is my post some time ago, where I was trying something similar.
Alternatively, a better solution, if and only if you can do a little massage before going to the data. All documents need to be assigned an identical ID which needs to be received in the form of a group, as per your example, it will add the binaryread field to another document and assign 994832 values to it. You will be able to use the Solar Grouping as a group in the form of one and then group sorting only to return the item you want.
Comments
Post a Comment