Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 57125 invoked from network); 11 Jul 2002 15:52:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Jul 2002 15:52:06 -0000 Received: (qmail 3559 invoked by uid 97); 11 Jul 2002 15:52:17 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 3543 invoked by uid 97); 11 Jul 2002 15:52:16 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 3460 invoked by uid 98); 11 Jul 2002 15:52:15 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D2DA4BC.4010609@robosoftin.com> Disposition-Notification-To: Pradeep Kumar Date: Thu, 11 Jul 2002 21:01:08 +0530 From: Pradeep Kumar K User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: contains References: <009901c228d5$b7534cf0$5e8d46c0@ilya> Content-Type: multipart/alternative; boundary="------------090203040101040009040502" X-Mailserver: Sent using PostMaster (v4.1.09) X-Loop-Detect: 1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------090203040101040009040502 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit How can we search for words having "ful" Thanks Pradeep Ilya Khandamirov wrote: >Try searching for "beuti*" > >Regards, >Ilya > > >-----Original Message----- >From: Pradeep Kumar K [mailto:pradeepk@robosoftin.com] >Sent: Samstag, 11. Mai 2002 10:48 >To: Lucene Users List >Subject: Re: contains > > >Joshua > >Thanks a lot for reply. I think I have not explained my doubt clearly . >I am not exactly searching for a letter, but can be a letter or a set of >letters . > >Example: Consider the sentences >1) "God is love" >2) "Life is beutiful" >Currently using lucene we can index this sentence by using different >Analyzers. When I create a query for searching in the indexes, as far as >my knowledge there are different types of queries . >TermQuery,BooleanQuery, PrefixQuery etc. but when we supply a query to >an IndexSearcher, the results returned by >the IndexSearcher shows that unless if u give the whole word it >doesn't find. >ie, if I search for "beuti" it doen't return any results. but if we >search for "beutiful" it returns the number of hits 1. >Is there any way to create a query using any of the lucene Query >objects, which should make the Indexsearcher to search even for set of >letters.. > >Best Wishes >Pradeep > >Joshua O'Madadhain wrote: > > > >>Pradeep: >> >>I think what Peter was trying to get at was the question "when is it >>useful for a search engine user to be able to search for words that >>contain a particular letter?" >> >>For a language like Chinese, it would certainly be useful to be able to >> >> > > > >>search for a single character. However, the informational content of a >> >> > > > >>single letter in an alphabet-based language (such as English) is so low >> >> > > > >>that I have trouble believing that it would be useful to be able to do >>this kind of search. >> >>That is to say: unless this feature has been presented to you as a >>requirement, you may want to think about how it might be used in >>practice before you spend a lot of time implementing it. >> >>Regards, >> >>Joshua O'Madadhain >> >>jmadden@ics.uci.edu...Obscurium Per >>Obscurius...www.ics.uci.edu/~jmadden >> Joshua O'Madadhain: Information Scientist, Musician, >> >> >Philosopher-At-Tall > > >>It's that moment of dawning comprehension that I live for--Bill >> >> >Watterson > > >>My opinions are too rational and insightful to be those of any >> >> >organization. > > >>On Thu, 11 Jul 2002, Pradeep Kumar K wrote: >> >> >> >> >> >>>Hi Peter >>> I want to include an option called "contains " in my search >>>application. for example: Name "contains" 'p' like that... Thanks >>>for reply. Pradeep >>> >>>Peter Carlson wrote: >>> >>> >>> >>> >>> >>>>Do you really want to be able to find items by letter? Do you have >>>>some other purpose that tokenizing by letter is trying to get around. >>>> >>>>If your do want to tokenize by letter, you can create your own >>>>tokenizer which creates breaks up items by letter. See the current >>>>tokenizers under org.apache.lucene.analysis. >>>> >>>>--Peter >>>> >>>>On 7/10/02 10:26 AM, "Pradeep Kumar K" wrote: >>>> >>>> >>>> >>>> >> >> >> >>>>>Is it possible to search for a word contains some letters? example : >>>>> >>>>> > > > >>>>>"God is love" >>>>> >>>>>how can I create query to search for sentences having "d". I found >>>>>that lucene is tokenizing a sentence in to words not into letters. >>>>>is it possible using lucene? Can anybody give a clue for this? >>>>> >>>>> >>>>> >>>>> >>-- >>To unsubscribe, e-mail: >> >> > > > >>For additional commands, e-mail: >> >> >> >> >> >> > > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > > --------------090203040101040009040502--