November Happy Hour will be moved to Thursday December 5th.

Priority on properties/fields

Vote:
 

Hi

 

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"

#61483
Sep 20, 2012 15:08
Vote:
 

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 :

client.Search<BlogPost>()
.For("cyklade")
.InField(x => x.Content).AndInField(x => x.Author,4).WithHighlight(x => x.Content).GetResult();

You can read more about searching in the documentation at http://find.episerver.com/Documentation

Hope that helps.

#61515
Sep 21, 2012 9:32
Vote:
 

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.

#61519
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.