Searching across multiple fields

2008-11-17 Thread Aditi Goyal
Hi, Lets say I have an index with the following fields: field1, field2, field3 and field4 where all the fields can have same values. Now I want to search a document where "basket" and "apple" are part of the whole document but "orange" is not. I have tried using MultiFieldQueryParser but it is n

Searching across multiple fields

2008-11-17 Thread Aditi Goyal
Hi, Lets say I have an index with the following fields: field1, field2, field3 and field4 where all the fields can have same values. Now I want to search a document where "basket" and "apple" are part of the whole document but "orange" is not. I have tried using MultiFieldQueryParser but it is n

Re: Querying wildcard

2008-10-29 Thread Aditi Goyal
bunch of them. > > > > One would be to reverse the tokens and make your leading > > wildcard queries into trailing ones on the reversed field. > > > > But without more details about what you're trying to accomplish, > > there's not much really useful advice w

Querying wildcard

2008-10-29 Thread Aditi Goyal
Hi All, I have been wanting to do a wildcard search with * as a first letter on an index. Is there a way out except for setAllowLeadingWildcard() of QueryParser to true? Because, i have heard it is an expensive operation. Thanks Aditi

Re: Document larger than setRAMBufferSizeMB()

2008-10-06 Thread Aditi Goyal
h could help to retreive the >> content later. >> >> Regards >> Ganesh >> >> - Original Message - From: "Aditi Goyal" <[EMAIL PROTECTED]> >> To: >> Sent: Friday, October 03, 2008 3:03 PM >> Subject: Re: Document larger than setRAMBuf

Re: Document larger than setRAMBufferSizeMB()

2008-10-03 Thread Aditi Goyal
o me. The > distinction is yours to draw > > On Fri, Oct 3, 2008 at 1:56 PM, Aditi Goyal <[EMAIL PROTECTED]> > wrote: > > > Hi Everyone, > > > > I have an index which I am opening at one time only. I keep adding the > > documents to it until

Document larger than setRAMBufferSizeMB()

2008-10-03 Thread Aditi Goyal
Hi Everyone, I have an index which I am opening at one time only. I keep adding the documents to it until I reach a limit of 500. After this, I close the index and open it again. (This is done in order to save time taken by opening and closing the index) Also, I have set setRAMBufferSizeMB to 16MB

jre installing problem in ubuntu

2008-09-16 Thread Aditi Goyal
Hi All, I'm running Ubuntu Linux 8.04, which has the sun jre installed in the system area (/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/). I've manually installed an updated JRE (jre1.6.0_07) into /usr/local area (/usr/local/lib/jre1.6.0_07/lib/), and my PATH environment variable is updated to use th

Re: java.lang.NullPointerExcpetion while indexing on linux

2008-08-21 Thread Aditi Goyal
On Wed, Aug 20, 2008 at 6:12 PM, Michael McCandless <[EMAIL PROTECTED] > wrote: > > Aditi Goyal wrote: > > Thanks Mike. I found the problem. >> The problem was that I was not converting the value of the fields to utf-8 >> and hence while adding it to doc it was

Re: java.lang.NullPointerExcpetion while indexing on linux

2008-08-20 Thread Aditi Goyal
k that code looks fine, though removeField is an expensive > operation and unnecessary for this. > > We really need the full traceback of the exception. > > Mike > > > Aditi Goyal wrote: > > Thanks Michael and Ian for your valuable response. >> I am attaching a smal

Re: java.lang.NullPointerExcpetion while indexing on linux

2008-08-19 Thread Aditi Goyal
Thanks Michael and Ian for your valuable response. I am attaching a small default code. Please have a look and tell me where am I going wrong. import lucene from lucene import Document, Field, initVM, CLASSPATH doc = Document() fieldA = Field('fieldA', "", Field.Store.YES, Field.Index.UN_TOKENIZE

java.lang.NullPointerExcpetion while indexing on linux

2008-08-19 Thread Aditi Goyal
Hi All, I am using IndexWriter for adding the documents. I am re-using the document as well as the fields for improving index speed as per the link http://wiki.apache.org/lucene-java/ImproveIndexingSpeed. So, for each doc, i am first removing field using doc.removeField() and then field.setValue(

Re: Can we update a field on the current index

2008-07-10 Thread Aditi Goyal
at least a Jira issue opened, towards > improving this situation, here: > >https://issues.apache.org/jira/browse/LUCENE-1231 > > But it will be some time before that's available. > > Mike > > > Aditi Goyal wrote: > > Hi, >> >> I want to modify a fi

Can we update a field on the current index

2008-07-10 Thread Aditi Goyal
Hi, I want to modify a field on the current index. Can it be done? For what I have heard that we cannot update the index . It has to be reindexed by deleting and then indexing again. Thanks, Aditi

Re: lucene search options

2008-06-23 Thread Aditi Goyal
ammedali Asadullah, >> Software Engineering & Technology Labs, >> Infosys Technolgies Limited, Electronics City, >> Hosur Road, Bangalore 560 100, India. >> *Board: +91-80-28520261 | Extn: 53915 | Direct: 41173915. >> Fax: +91-80-28520362 | Mobile: +91-984550532

Re: lucene search options

2008-06-23 Thread Aditi Goyal
n: 53915 | Direct: 41173915. > Fax: +91-80-28520362 | Mobile: +91-9845505322. > http://setlabs/slim/ > http://allahbaksh.blogspot.com > > > -Original Message- > From: Aditi Goyal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 1:24 PM > To: java-user@lucene.apac

Re: lucene search options

2008-06-23 Thread Aditi Goyal
llahbaksh.blogspot.com > > > -Original Message- > From: Aditi Goyal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 12:06 PM > To: java-user@lucene.apache.org > Subject: Re: lucene search options > > Thanks a lot Daniel, I will try this option. :) > Is ther

Re: lucene search options

2008-06-22 Thread Aditi Goyal
Thanks a lot Daniel, I will try this option. :) Is there a way to search for not equal to query alone? On Mon, Jun 23, 2008 at 12:03 PM, Daniel Noll <[EMAIL PROTECTED]> wrote: > On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: > > I think wildcard (*) cannot be used i

Re: lucene search options

2008-06-22 Thread Aditi Goyal
+91-80-28520362 | Mobile: +91-9845505322. > http://allahbaksh.blogspot.com > > > -Original Message- > From: Aditi Goyal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 11:51 AM > To: java-user@lucene.apache.org > Subject: lucene search options > > Hi

lucene search options

2008-06-22 Thread Aditi Goyal
Hi All, I am using Lucene for creating indexes. There is one field as "email" which stored the email id. I have few queries regarding searching: 1. I want to search for all the records having domain as "gmail.com" . So, is there a way by which I can do a partial search on "email" field such that I