Add a filter query parameter, such as &fq=content_type:video .
Or if you want the user to be able to add that in the search box, use
edismax and the query string could be:
"obama budget" AND content_type:video
-- Jack Krupansky
-----Original Message-----
From: srinalluri
Sent: Wednesday, October 03, 2012 1:35 PM
To: solr-user@lucene.apache.org
Subject: Dismax parser. Where can I add field:value to the query?
If I use dismax parser in the query, I knew I can't give field:value to the
q.
The following query works fine.
/select/?defType=dismax&pf=title^2&q="obama%20budget"&qf=title
But I want these results when content_type:video only. Where can I add
content_type:video in the query, so that I can give video type results only?
thanks
Srini
--
View this message in context:
http://lucene.472066.n3.nabble.com/Dismax-parser-Where-can-I-add-field-value-to-the-query-tp4011643.html
Sent from the Solr - User mailing list archive at Nabble.com.