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=true&spellcheck.collateExtendedResults=true&tie=0.1&spellcheck.maxCollations=4&spellcheck.maxCollationTries=1000&qf=tags^11.0+title^10.0+...&q.alt=*:*&wt=javabin&spellcheck.collate=true&version=2&rows=10&defType=dismax&fl=*&bq=type:some_field^100&start=0&q=taveranx~&bf=recip(ms(NOW,publication_date),1.150000e-08,3650,3650)&spellcheck.count=20&qt=dismax&fq=-status:C&fq=-(-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=true&facet=true&spellcheck.collateExtendedResults=true&tie=0.1&spellcheck.maxCollations=4&spellcheck.maxCollationTries=1000&qf=tags^11.0+...&q.alt=*:*&wt=javabin&spellcheck.collate=true&version=2&rows=0&defType=dismax&fl=*&bq=type:some_field^100&start=0&q=taveranx~&bf=recip(ms(NOW,publication_date),1.150000e-08,3650,3650)&facet.field=type&spellcheck.count=20&qt=dismax&fq=-status:C&fq=-(-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

Reply via email to