Hi, see here: https://cwiki.apache.org/confluence/display/solr/Highlighting
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: akshaymall [mailto:[email protected]] > Sent: Monday, March 07, 2016 2:16 PM > To: [email protected] > Subject: RE: Solr- Fuzzy Search > > Hi Uwe, > > Thanks for the reply. > > Could you please help us with the code also? > > We are using C# as the base language and the solr query we have built is as > follows: > > var facetResults = solr.Query(new SolrQuery("text: agree~2"), new > QueryOptions > { > Rows = 10, > Facet = new FacetParameters > { > Queries = new[]{ > new SolrFacetFieldQuery("extension"){ > Prefix = "", > Limit = 5 > } > } > } > }); > > Regards, > > Akshay Mall > > Senior Analyst, > Financial Services Product Development, > eClerx Services Limited > > Phone: +91 9173435462 | +91 9167368827 > eClerx Services Limited [www.eClerx.com] > [cid:[email protected]] > > From: Uwe Schindler [via Lucene] [mailto:ml- > [email protected]] > Sent: Monday, March 07, 2016 6:36 PM > To: Akshay Mall <[email protected]> > Subject: RE: Solr- Fuzzy Search > > Hi, > > you can use the highlighter functionality. It will "mark" the hits in the > document text. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: [hidden > email]</user/SendEmail.jtp?type=node&node=4262093&i=0> > > > -----Original Message----- > > From: akshaymall [mailto:[hidden > email]</user/SendEmail.jtp?type=node&node=4262093&i=1>] > > Sent: Monday, March 07, 2016 1:46 PM > > To: [hidden email]</user/SendEmail.jtp?type=node&node=4262093&i=2> > > Subject: Solr- Fuzzy Search > > > > I want to try the fuzzy search in Solr with a specific query. > > > > For example, I want to search all the words that match this query: "agree > > ~2". > > > > Now using a simple query, I can find the documents that have the words > > matching the above query. But I want to know the words that Solr has > found > > in the document. > > > > Example: > > > > Search Result: > > 1. Sample1.pdf > > 2. Sample2.pdf > > > > What I want as a result: > > > > 1. Sample1.pdf : agree, agrea > > 2. Sample2.pdf : agref, agret > > > > > > > > > > -- > > View this message in context: http://lucene.472066.n3.nabble.com/Solr- > > Fuzzy-Search-tp4262092.html > > Sent from the Lucene - General mailing list archive at Nabble.com. > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://lucene.472066.n3.nabble.com/Solr-Fuzzy-Search- > tp4262092p4262093.html > To unsubscribe from Solr- Fuzzy Search, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro > =unsubscribe_by_code&node=4262092&code=YWtzaGF5Lm1hbGxAZWNsZX > J4LmNvbXw0MjYyMDkyfC00OTQ1Nzk3MjE=>. > NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?mac > ro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble. > naml.namespaces.BasicNamespace- > nabble.view.web.template.NabbleNamespace- > nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscrib > ers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml- > send_instant_email%21nabble%3Aemail.naml> > > > image001.png (21K) > <http://lucene.472066.n3.nabble.com/attachment/4262097/0/image001.png > > > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Solr- > Fuzzy-Search-tp4262092p4262097.html > Sent from the Lucene - General mailing list archive at Nabble.com.
