Priority on properties/fields




It is posible to set priority on properties/fields?

I want that a document/page with a hit in the property "Heading" would be rated higher than a document with a hit in the property "MainBody"

Sep 20, 2012 15:08

Yes you can here is a simple example where the importance is higher for hits in Author then in the other field, content, I am searching on :

.InField(x => x.Content).AndInField(x => x.Author,4).WithHighlight(x => x.Content).GetResult();

You can read more about searching in the documentation at

Hope that helps.

Sep 21, 2012 9:32

Even if you don't set boosting on field you often will get a "natural" boost since the the number of terms in heading are less than in the main body.

Sep 21, 2012 9:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.