we have millions of annals . Initially we used lucene to index information
though due to OutofMemeory exception, solid to pierce information to solr.
Below is a fields that we announce in schema.xml to perform indexing and
seach operation. We are controlling solrj api to craete solr
query.Solr Query code:SolrQuery solrQuery=new
SolrQuery();solrQuery.setQuery("id:*_TB");solrQuery.setRows(10000);solrQuery.addFilterQuery(searchStr);//QueryResponse
rsp = httpserver.query(solrQuery);In lucene following query was operative
in accurate search,fuzzy hunt etc. when user form a word in UI.EX:- New
Brand launchedFor Exact Search in lucenesearchstr = (source:"abc" OR
target:"abc" OR deprecated:"abc") AND company:"tc"Fuzzy search:
searchstr = (source:New Brand launched~0.7 OR target:New Brand
launched~0.7 OR deprecated:New Brand launched~0.7) AND
company:"bb"Default hunt searchstr = (source:New Brand launched* OR
target:New Brand launched* OR deprecated:New Brand launched*) AND
company:"cc"Now in solr above query is not working. when user form a above
"New Brand launched" in UI the giving 0 result. greatfully advise me where
we am doing wrong.
No comments:
Post a Comment