The code works with a stock Lucene 4.3.0 JAR and default codec, and has a trivial API: just call
NativeSearch.search instead of
Now, a quick update: I've optimized
PhraseQuery now as well:
|Task||QPS base||StdDev base||QPS opt||StdDev opt||% change|
~2X speedup (~90% - ~119%) is nice!
Again, it's great to see a reduced variance on the runtimes since hotspot is mostly not an issue. It's odd that
LowPhrasegets slower QPS than
MedPhrase: these queries look mis-labelled (I see the
LowPhrasequeries getting more hits than
All changes have been pushed to lucene-c-boost; next I'd like to figure out how to get facets working.