lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baris.ka...@oracle.com
Subject What is edit distance 2 mean for fuzzy queries?
Date Fri, 28 Jun 2019 18:25:46 GMT
Hi,-

search Query: [+streetDFLT:ridg~2, +cityDFLT:"nashua", 
+regionDFLT:"new-hampshire", +countryDFLT:"united" +countryDFLT:"states"]

Name: Ridge Rd
Score: 35.297863
ID: 10242301
Country Code: US
Coordinates: 42.70569, -71.49599
Search Key: street="RIDGE" city="NASHUA" municipality="HILLSBOROUGH" 
region="NEW HAMPSHIRE" country="UNITED STATES"

for this i can find RIDGE but

with search string RID i cant find RIDGE at all:

search Query: [+streetDFLT:rid~2, +cityDFLT:"nashua", 
+regionDFLT:"new-hampshire", +countryDFLT:"united" +countryDFLT:"states"]

Name: NASHUA
Score: 28.291311
ID: 21014865
Country Code: US
Coordinates: 42.75873, -71.46438
Search Key: city="NASHUA" municipality="HILLSBOROUGH" region="NEW 
HAMPSHIRE" country="UNITED STATES"

Name: NASHUA
Score: 28.291311
ID: 21014865
Country Code: US
Coordinates: 42.75873, -71.46438
Search Key: city="NASHUA" municipality="HILLSBOROUGH" region="NEW 
HAMPSHIRE" country="UNITED STATES"

Name: NASHUA
Score: 28.291311
ID: 21014865
Country Code: US
Coordinates: 42.75873, -71.46438
Search Key: city="NASHUA" municipality="HILLSBOROUGH" region="NEW 
HAMPSHIRE" country="UNITED STATES"

Name: NASHUA
Score: 28.291311
ID: 21014865
Country Code: US
Coordinates: 42.75873, -71.46438
Search Key: city="NASHUA" municipality="HILLSBOROUGH" region="NEW 
HAMPSHIRE" country="UNITED STATES"

Name: Pennichuck St
Score: 28.291311
ID: 8022314
Country Code: US
Coordinates: 42.79266, -71.46672
Search Key: street="PENNICHUCK" city="NASHUA" 
municipality="HILLSBOROUGH" region="NEW HAMPSHIRE" country="UNITED STATES"

Name: Hartford Ln
Score: 28.291311
ID: 9817672
Country Code: US
Coordinates: 42.78252, -71.49689
Search Key: street="HARTFORD" city="NASHUA" municipality="HILLSBOROUGH" 
region="NEW HAMPSHIRE" country="UNITED STATES"

Name: Marblehead Dr
Score: 28.291311
ID: 12762505
Country Code: US
Coordinates: 42.79743, -71.50919
Search Key: street="MARBLEHEAD" city="NASHUA" 
municipality="HILLSBOROUGH" region="NEW HAMPSHIRE" country="UNITED STATES"

RID is two edit distances away from RIDGE , right? Should i enable 
something during indexing for fuzzy queries?
Best regards



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message