Re: Boost Exact matches on Specific Fields

2011-10-03 Thread Erick Erickson
I'm not sure what you're asking here. Could you show the results of appending &debugQuery=on to your query? Along with what you expect to happen and what is in the fields. But KeywordTokenizer (in your "string_lower") type is suspicious when you start using multiple words. Your "agriculture foods"

Re: Boost Exact matches on Specific Fields

2011-10-03 Thread Balaji S
Hi One More Question here , For ex: If so do an search for "Agriculture Foods" with out Quotes , It is trying to find the ones which have both the words not Splitting and checking for individual results . On removing the QF params it seems to work . Is it a problem with the QF params I

Re: Boost Exact matches on Specific Fields

2011-09-28 Thread Balaji S
Yeah I will change the weight for str_category and make it higher . I converted it to lowercase because we cannot expect users to type them in the correct case Thanks Balaji On Thu, Sep 29, 2011 at 3:52 AM, Way Cool wrote: > I will give str_category more weight than ts_category because we want

Re: Boost Exact matches on Specific Fields

2011-09-28 Thread Way Cool
I will give str_category more weight than ts_category because we want str_category to win if they have "exact" matches ( you converted to lowercase). On Mon, Sep 26, 2011 at 10:23 PM, Balaji S wrote: > Hi > > You mean to say copy the String field to a Text field or the reverse . > This is the

Re: Boost Exact matches on Specific Fields

2011-09-26 Thread Balaji S
Hi You mean to say copy the String field to a Text field or the reverse . This is the approach I am currently following Step 1: Created a FieldType Step 2 : Step 3 : And in the SOLR Query planning to q=hospitals&qf=body^4.0 title^5.0

Re: Boost Exact matches on Specific Fields

2011-09-26 Thread Way Cool
If I were you, probably I will try defining two fields: 1. ts_category as a string type 2. ts_category1 as a text_en type Make sure copy ts_category to ts_category1. You can use the following as qf in your dismax: qf=body^4.0 title^5.0 ts_category^10.0 ts_category1^5.0 or something like that. YH