First let me start by saying:  I'm sorry!

I know this question has probably been asked and answered already, but I am new 
to this project and just trying to get up to speed.  I do have a very simple 
example working, but not quite how I'd like.   So let me explain what I'd like 
to do and see if the community can suggest the proper analyzer and query.

Consider the following data to be indexed:

Doc1: This is free text
Doc2: This is a longer version of free text
Doc3: Yet another version of text

Right now, the working example I have will match a query for "text" with all 3 
documents.
However, any combination of more words or partials do not work.

Uses cases:

"free text" : Doc1, Doc2
"version text" : Doc2, Doc 3
"text version" : Doc2, Doc3
"some version text" : Doc2, Doc3
"long" : Doc2
"anothr" : Doc3

And maybe even:

"another longer free text" : Doc1, Doc2, Doc3

Any help is appreciated.  Here are the components I am currently using:

Lucene.Net.Analysis.Standard.StandardAnalyzer
Lucene.Net.Search.Query query = new Lucene.Net.Search.FuzzyQuery
Lucene.Net.Search.TopDocs hits = searcher.Search

________________________________________
Brian Wasikowski
Director, HIT Alliances and Support
Janssen Diagnostics, Inc.
Tel: +1 919 786 9153
Fax: +1 919 882 0913
Email: bwasi...@its.jnj.com<mailto:bwasi...@its.jnj.com>
Web: www.janssendiagnostics.com

IntraLinks Courier 
Dropbox<https://services.intralinks.com/ILClient/courier/lockbox.html?p1=331268255215951899&p2=QnJpYW4gV2FzaWtvd3NraQ%3D%3D>

Confidentiality Notice: This e-mail transmission may contain confidential or 
legally privileged information that is intended only for the individual or 
entity named in the e-mail address. If you are not the intended recipient, you 
are hereby notified that any disclosure, copying, distribution, or reliance 
upon the contents of this e-mail is strictly prohibited. If you have received 
this e-mail transmission in error, please reply to the sender, so that Johnson 
& Johnson can arrange for proper delivery, and then please delete the message 
from your inbox. Thank you.

Reply via email to