[bt-devel] Strongs search is not working

Joachim Ansorg nospam+bt-devel at joachim-ansorg.de
Sun Apr 30 15:12:30 MST 2006


Hi,
> Is anybody else having trouble with the strong:HXXXX search.

I get the same buggy results.
It seems like the search returns all entries of the old or of the new 
depending on the strong's type.



> I have traced it down to this line in cswordmoduleinfo.cpp
> line 399	util::scoped_ptr<Hits> h( searcher.search(q) );
> h->length() is either 23145 or 7956 when the searchedText is "strong:XXXXX"

Thank you for tracking this down!

I looked into the index using Luke (a tool to work with Lucene indexes) and 
the index seems to be broken. We need to further debug this.
I remember that we switched to the Simple analyzer instead of the Standard 
analyzer. Perhaps this is the problem.

Btw, I saw that CLucene's SVN contains a contrib dir with the highlighter 
classes to highlight a match in the text. That's probably useful for the 
search result view. I did not look at the details, though.

Thanks again for tracking this down,
Joachim


More information about the bt-devel mailing list