Documentation on boost functionstrings

10 views
Skip to first unread message

Robert

unread,
Jun 19, 2011, 7:16:56 PM6/19/11
to ThriftDB
Hey guys,

Can you shed some light on what functionstrings are in the search API.

See: http://www.thriftdb.com/documentation/rest-api/search-api
-> boosts[functions][<functionstring>] = float

Does the functionstring represent a formula for score calculation?

-Rob

Andres Morey

unread,
Jun 19, 2011, 7:37:08 PM6/19/11
to thri...@googlegroups.com
Function strings are functions that conform to the solr function query syntax:


You can use function boosts to rank matches by functions such as an exponentially decreasing function of time:

&boosts[functions][pow(2,div(div(ms(create_ts,NOW),3600000),72))]=10.0

Andres
Reply all
Reply to author
Forward
0 new messages