Hi all,

I have a scenario where a particular query returns multiple results and I
need to map those results as a key value pair.

Ex:
<entity="t1" query="select id from table1" >
<entity="t2" qyery="select PropertyName, propertyid from table2 where id
='${t1.id}' --> This query returns multiple values....

Now I want the result to be in one document as below.

<doc> 
<elementid>1</>
<100>Database</> --> 'Database' is the property name corresponding to
property id '100'
<101>table</>--> 'table' is the property name corresponding to property id
'101'
</doc>
 
The main criteria is that I don't want the users to specify any field name
for searching the data instead they should be able to search on the data
itself as its field names (like for example the user can search on 101 or
102 directly to find out what that particular data is related to etc..)

Please let me know if you need more information, I  will be happy to provide
you with the same..

Thanks a lot in advance..

Thanks,
Barani
-- 
View this message in context: 
http://old.nabble.com/How-to-index-the-fields-as-key-value-pair-if-a-query-returns-multiple-rows-tp27332475p27332475.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to