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 abhayd <aj...@hotmail.com> on 2011/10/01 05:45:08 UTC

join & sort query with key, value pair

hi 
i have a document like this
video_id,keyword:seq
for example
1,service:2 support:1
2,support:2
3,service:2
4,service:1
What i want is a query will send video_id and in response i want to see
video with that video_id and all other related videos with keyword in sorted
order by seq

say query is video=1

i would like to see (because they are related with keyword service and
support 
1 
4
3
2

How I can achieve this? Will polyfield help in this but i m not sure how?
Any help?



--
View this message in context: http://lucene.472066.n3.nabble.com/join-sort-query-with-key-value-pair-tp3384333p3384333.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: join & sort query with key, value pair

Posted by abhayd <aj...@hotmail.com>.
hi

I already looked at MLT , and seems like a good solution.

but problem is sorting. I want to sort results in seq number order


--
View this message in context: http://lucene.472066.n3.nabble.com/join-sort-query-with-key-value-pair-tp3384333p3414220.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: join & sort query with key, value pair

Posted by Chris Hostetter <ho...@fucit.org>.

: What i want is a query will send video_id and in response i want to see
: video with that video_id and all other related videos with keyword in sorted
: order by seq

start by looking at "MoreLikeThis"

https://wiki.apache.org/solr/MoreLikeThis



-Hoss