Hi,
I have got a SOLR instance on my local machine with samples of data. When I
run in myhost:8083/solr/#/mycore/query a query: title:taverna it gives me 4
results. When I make a mistake, for instance: title:taveranx it gives me 0
results but with '~' it finds all of the 4 samples which have been found
before.
I am trying to add Levenstein distance in my Java code.
I have got a piece of code:
import org.apache.solr.client.solrj.SolrServer;
// ...
private SolrServer solrServer // ...
QueryResponse originalResponse = solrServer.query(solrQuery);
here you can find how my variable solrQuery looks
like:http://oi59.tinypic.com/izmiwk.jpg
and no documents have been found.
I found queries which have been executed in SOLR and it looks like this:
Oct 18, 2014 7:02:11 PM org.apache.solr.core.SolrCore execute
INFO: [aos] webapp=/solr path=/select
params={spellcheck=truespellcheck.collateExtendedResults=truetie=0.1spellcheck.maxCollations=4spellcheck.maxCollationTries=1000qf=tags^11.0+title^10.0+...q.alt=*:*wt=javabinspellcheck.collate=trueversion=2rows=10defType=dismaxfl=*bq=type:some_field^100start=0q=taveranx~bf=recip(ms(NOW,publication_date),1.15e-08,3650,3650)spellcheck.count=20qt=dismaxfq=-status:Cfq=-(-startDate:[NOW+TO+*]+AND+type:some_field)fq=-type:listing}
hits=0 status=0 QTime=22
Oct 18, 2014 7:02:11 PM org.apache.solr.core.SolrCore execute
INFO: [aos] webapp=/solr path=/select
params={spellcheck=truefacet=truespellcheck.collateExtendedResults=truetie=0.1spellcheck.maxCollations=4spellcheck.maxCollationTries=1000qf=tags^11.0+...q.alt=*:*wt=javabinspellcheck.collate=trueversion=2rows=0defType=dismaxfl=*bq=type:some_field^100start=0q=taveranx~bf=recip(ms(NOW,publication_date),1.15e-08,3650,3650)facet.field=typespellcheck.count=20qt=dismaxfq=-status:Cfq=-(-startDate:[NOW+TO+*]+AND+type:some_field)}
hits=0 status=0 QTime=29
Can someone tell me where could be a mistake?
Thank you in advance
Alex