You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Sudhanya Chatterjee <su...@persistent.co.in> on 2008/01/24 11:59:59 UTC

Query Lucene.net

Hi,

Using Lucene.net how can I create a query in such a way that it gives
results similar to substring search.

 

For example - 

Search Keyword  : "def"

 

Should give results : 

            abcdef

            abcdefgh

 

Thanks,

Sudhanya

 


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

RE: Query Lucene.net

Posted by "Granroth, Neal V." <ne...@thermofisher.com>.
One easy way is to use the WildcardQuery class and search for "*def*".

-- Neal

-----Original Message-----
From: Sudhanya Chatterjee [mailto:sudhanya_chatterjee@persistent.co.in]
Sent: Thursday, January 24, 2008 5:00 AM
To: lucene-net-user@incubator.apache.org
Subject: Query Lucene.net

Hi,

Using Lucene.net how can I create a query in such a way that it gives
results similar to substring search.



For example -

Search Keyword  : "def"



Should give results :

            abcdef

            abcdefgh



Thanks,

Sudhanya




DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.