Ticket #188 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

Greek search does not return highlighted results

Reported by: hcayless Owned by: hcayless
Priority: major Milestone: PN Transfer to NYU
Component: navigator Version:
Keywords: Cc:

Change History

Changed 11 months ago by hcayless

Found the problem: In the refactoring, the JAR produced by source:/pn-ddbdp-indexers was named after the project name. Presumably, the original jar name was something like ddbdp-indexers.jar. source:/pn/trunk/pn-ddbdp-indexers/src/main/java/org/apache/lucene/search/highlight contains classes with identical names to some of those in the Lucene highlighter package. Because of the name change, the lucene jar was loaded first, and therefore the classes with the same name in the Lucene jar "won". The modified ones were never loaded.

Changing the jar name to something alphanumerically prior to lucene-highlighter-2.4.0.jar causes the application to work properly. Will investigate refactoring so that this kind of thing doesn't happen again, but quick fix (read: hack) would be to change the name of the generated jar.

Changed 11 months ago by hcayless

  • status changed from new to closed
  • resolution set to fixed

Tried several avenues to route around this, without much luck. The WeightedSpanTermExtractor? was modified to call rewrite on the query in certain circumstances. Calling rewrite before it is passed in results in more highlights, but not complete success. In the end, I moved the SpanScorer? and WeightedSpanTermExtractor? classes out of the way (by prefixing 'PN' to the names) and called those classes instead. This removes the classloading precedence problem, but it does mean special attention will have to be payed during future Lucene upgrades. r1748.

Note: See TracTickets for help on using tickets.