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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -