[pylucene-dev] boosting seems not to work in 2.2.0-1

Wojtek S wsobczuk at gmail.com
Fri Jul 6 16:45:08 PDT 2007


I installed PyLucene 2.2.0-1 on Mac OS X 10.4.10 (from the provided
package), and when I execute the following code:

    writer = IndexWriter('index/places', StandardAnalyzer(), True)
    doc = Document()
    doc.add(Field("name", "foobar"))
    doc.setBoost(2)
    writer.addDocument(doc)
    writer.close()

the document in the index is not boosted (it has boost 1), as Luke indicates
and as searches with a larger number of documents with various boosts
indicate.

any idea how to fix it?

-- 
Wojciech Sobczuk
grono.net
605607170

"Now,
you will see me one more time if you do
good. You will see me two more times if
you do bad. Good night."
-- COWBOY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20070707/1bf4f768/attachment.html


More information about the pylucene-dev mailing list