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 in the beginning :( > > Wron

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
Hi Daniel, You are right earlier the wild card character were not supported but now they are supported. Regards, Allahbaksh Allahbaksh Mohammedali Asadullah, Software Engineering & Technology Labs, Infosys Technolgies Limited, Electronics City, Hosur Road, Bangalore 560 100, India. *Board: +91-8

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
Usually if you negate the keyword then that document will be skipped. So what else you want to search. Design of fields is very important. Warm Regards, Allahbaksh Allahbaksh Mohammedali Asadullah, Software Engineering & Technology Labs, Infosys Technolgies Limited, Electronics City, Hosur Road,

Re: lucene search options

2008-06-22 Thread Daniel Noll
On Monday 23 June 2008 16:21:17 Aditi Goyal wrote: > I think wildcard (*) cannot be used in the beginning :( Wrong: http://lucene.apache.org/java/2_3_0/api/core/org/apache/lucene/queryParser/QueryParser.html#setAllowLeadingWildcard(boolean) Daniel ---

Re: lucene search options

2008-06-22 Thread Aditi Goyal
Thanks Allahbaksh, But this was just an example. I want to search for lot more fields like this. On Mon, Jun 23, 2008 at 11:55 AM, Allahbaksh Mohammedali Asadullah < [EMAIL PROTECTED]> wrote: > One way of doing it is while parsing email if it has .gmail.com add it to > different field also. > Wa

RE: lucene search options

2008-06-22 Thread Allahbaksh Mohammedali Asadullah
One way of doing it is while parsing email if it has .gmail.com add it to different field also. Warm Regards, Allahbaksh Allahbaksh Mohammedali Asadullah, Software Engineering & Technology Labs, Infosys Technolgies Limited, Electronics City, Hosur Road, Bangalore 560 100, India. *Board: +91-80-285

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

Re: creating Array of IndexReaders

2008-06-22 Thread Daniel Noll
On Saturday 21 June 2008 18:57:49 Sebastin wrote: > Since i am maintaining more than 1.5 years records in the windows 2003 > server,based on the user input for example if the user wants to display > june 1 - june 15 folders and fetch the records from them.if the user wants > to display may 1-may15

Re: How to make mutually exclusive lists of results

2008-06-22 Thread Dr. Fish
Ah great that was the kind of stuff I was looking for. Right now I have < 1000 results, so it won't kill me to use hits. I will look into Hit Collection for my next release to fix that... Erick Erickson wrote: > > Watch out though. By "hit' I assume you mean a Hits object. Iterating > over

Re: How to make mutually exclusive lists of results

2008-06-22 Thread Erick Erickson
Watch out though. By "hit' I assume you mean a Hits object. Iterating over a large result set with a Hits object can be very inefficient because the query re-executes every 100 or so. Think about a HitCollector instead. Best Erick. On Sun, Jun 22, 2008 at 2:59 PM, Dr. Fish <[EMAIL PROTECTED]> w

RE: How to make mutually exclusive lists of results

2008-06-22 Thread Dr. Fish
Ah I think I got it hit.getDocument().getField("CityID").stringValue() seems to be what I wanted Thanks! Dr. Fish wrote: > > I tried this first, and I was having trouble iterating over them. > > > If I do something like this > > hit.getDocument().getField("CountryID").toString() > > I

RE: How to make mutually exclusive lists of results

2008-06-22 Thread Dr. Fish
I tried this first, and I was having trouble iterating over them. If I do something like this hit.getDocument().getField("CountryID").toString() I get a big long BS object.. not just the result of my search. I also tried messing with the tokenStreamValue(), and had the same result. How do I

RE: How to make mutually exclusive lists of results

2008-06-22 Thread Steven A Rowe
Hi Dr. Fish, You could make just a single query with the broadest query possible - e.g. bacon AND country:"united states" and then iterate over all results, dividing them into your three buckets based on the values of the other two fields. Steve On 06/22/2008 at 12:29 PM, Dr. Fish wrote: >

How to make mutually exclusive lists of results

2008-06-22 Thread Dr. Fish
Hi, I currently am using Lucene to index documents. I index 4 fields, the body of the document, the city it is related to, the state it is related to, and the country it is related to. I have a java web application where the user types in some search text.. and it searches the body of the docume