On Wed, Dec 22, 2010 at 3:09 PM, Hasnain <hasn...@hotmail.com> wrote:
[...]
> From my understanding, if i query for a keyword, let's say "Laptop",
> preference is given to result rows having more occurences of the search
> keyword "Laptop" in the field "name". This, however, is producing
> undesirable scenarios, for example:
>
> 1. I index an item A with "name" value "Sony Laptop".
> 2. I index another item B with "name" value: "Laptop bags for laptops".
> 3. I search for the keyword "Laptop"
>
> According to the default behaviour, precedence would be given to item B
> since the keyword appears more times in the "name" field for that item.

Your question is not clear. How would you like the precedence to work?
If you want to ignore term frequency you can override the default similarity
class with a custom class; changing the configuration to the new similarity
class at the bottom of schema.xml.

> Also we donot have anything in the catagory field with which we can
> catagorize.
[...]

Sorry, what category field are you talking about? Is this something specific
to your schema?

Regards,
Gora

Reply via email to