java - Lucene Wildcard Search doesn't seem to rewrite the query like it does for Fuzzy Search -
when @ at explain of fuzzy query can see has replaced existing search term
artist:republica~0.5
with terms in documents matched
(artist:republic^0.78 artist:republica^1.04 artist:republice^0.80888885)
but wildcard query doesnt seem to
artist:republica*
gives
constantscore(artist:republica*^1.04)^1.04
why ?
never mind thought multi-term queries used same rewrite method reading of javadocs realise fuzzy query uses different rewrite method wildcard , prefix queries.
fuzzyquery: multitermquery.toptermsscoringbooleanqueryrewrite
wildcardquery: multitermquery.constantscoreautorewrite
Comments
Post a Comment