Index time boosts

13 views
Skip to first unread message

Michael Lissner

unread,
Dec 23, 2011, 1:05:25 AM12/23/11
to Python Sunburnt
Hi,

Is there a way to add field-level boosts at index time in Sunburnt?

Just trying to get at this underlying feature:
http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22field.22

Thanks.

Toby White

unread,
Dec 23, 2011, 4:26:16 AM12/23/11
to python-...@googlegroups.com
Hi Michael,

no, right now there's no way to do this at index time I'm afraid.

You can at query time though, like so:

si = SolrInterface(...)
q = si.query(si.Q('term')**2.5)

If you're interested in working with this functionality, the add
documents are currently constructed in schema.py:512, and any
documents you construct need to be passed to
SolrInterface.conn.update()

Toby


On 23 December 2011 06:05, Michael Lissner

Michael Lissner

unread,
Dec 23, 2011, 1:50:39 PM12/23/11
to Python Sunburnt
I think I can work around it for now, but I'll issue a pull request if
I end up coding this. Thanks.
> >http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for...
>
> > Thanks.
Reply all
Reply to author
Forward
0 new messages