Lucene query parser: convert ConstantScoreQuery to SpanQuery -


i have custom "phrase query parser" develeped third-party not available. parser rewrites several query types spanqueries (each type in different way). problem written lucene v3 , i'm migrating search l. v4, , parser started getting type rewrite (constantscorequery), not expected before , it's not handled parser.

could me , explain how convert constantscorequery 1 of spanquery types??

best regards, piotr

constantscorequery wrapper. it's quite possible still producing spanquery (or whatever other query type expected), wrapped constantscorequery. i'd see if constantscorequery.getquery() returns can use.


Comments