Store the literal question as the title or another separate field of the document/answer and then do an edismax query using the query question with q.op set to "OR" and pf2 and pf3 set to the field that contains the question as well as the answer body field, with an extra boost for the question field. The "OR" will give you extra results, but also give you a better chance of capturing all relevant answers when the question is not an exact match or merely a weak watch, and the closer matching question/answers will be ranked more highly. And you can also set "mm" (min matched) to 25% or 50% or whatever so that very weak matches are excluded.

-- Jack Krupansky

-----Original Message----- From: hemantverm...@gmail.com
Sent: Monday, October 01, 2012 8:17 AM
To: solr-user@lucene.apache.org
Subject: Question searching

Hi All

I have a example use case where people do post question and answers, like in
quora.com
I need to understand that what could be the best strategy to index questions
in solr so that search for a question return relevant matching questions
(already posted by other users) on top.
What other tools are available which can help in extracting the context of
question so that better solr query can be created to get the better match.

Any helpful hint or idea?

Thanks
Hemant



--
View this message in context: http://lucene.472066.n3.nabble.com/Question-searching-tp4011168.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to