(1) You just include a fielded search: I.e q=category:phones. Including the field will override the automatic distribution across fields. Add &debug=query to see what the final parsed form is.
(2) Not really, people have used highlighting to determine this though. That can be rather expensive. With the example given, and assuming you want the docs ordered exact/edge/ngram you could boost them differently... Best, Erick On Sun, Dec 31, 2017 at 10:17 AM, Sami al Subhi <s...@alsubhi.me> wrote: > Hello, > > I have these query parameters: > > 'q' => "iphone", > 'echoParams' => "explicit", > 'defType' =>'edismax', > 'fl' => 'name,category,score', > 'qf' =>'name_suggest_edge^50 name_suggest_exact^50 name_suggest_ngram', > 'pf' =>'name_suggest_edge^100 ' > > 1) How can I limit the search to the docs that have the field value > 'category:phones' > > 2)An other question: is there a way to know which fields q was matched on > > name_suggest_edge > name_suggest_exact > name_suggest_ngram > > when the results are returned. > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html