Re: Create and populate a field when indexing

2007-11-12 Thread KR
Erick Erickson wrote: > > Sure, just define it in the same scope as you want to refer to it. > Of course, that tells you nothing ... > > Java variables go out of scope when the last '}' *at the same level* > is passed. For intance: > > { >string s1; >{ > string s2; >} // s2 i

Re: Create and populate a field when indexing

2007-11-09 Thread KR
Grant Ingersoll-6 wrote: > > When you are indexing the file and adding the Document, you will need > to parse out your filename per your regular expression, and then > create the appropriate field: > > Document doc = new Document() > String cat = getCategoryFromFileName(inputFileName) > doc

Create and populate a field when indexing

2007-10-29 Thread KR
I've been using the Lucene demo from http://lucene.apache.org/java/2_1_0/demo.html I have a set of documents with filenames that give a good indication of content. A filename of 12 digits (I think this is [0-9]{12} as a regular expression) with the extension html is a troubleshooting guide, the

Re: Search on multiple columns

2005-11-15 Thread Manoj Kr. Sheoran
fields, analyzer). Regards, Tarjei On 11/15/05, Manoj Kr. Sheoran <[EMAIL PROTECTED]> wrote: > > Hi, > Is there any way to search on multiple columns. > > i.e. > Query qry = QueryParser.parse(line,"contents",anlz); > > In above statement I can search on cont

Search on multiple columns

2005-11-15 Thread Manoj Kr. Sheoran
Hi, Is there any way to search on multiple columns. i.e. Query qry = QueryParser.parse(line,"contents",anlz); In above statement I can search on contents field only but I would like to search data on two Fields at a time. Is there any way to do it ? Regards, Manoj - Original Message

Re: lucene and jsp

2005-11-06 Thread Manoj Kr. Sheoran
You should check your logs on server side(on tomcat). I am sure some exception is generated over there. --Manoj - Original Message - From: "Gaston" <[EMAIL PROTECTED]> To: Sent: Saturday, November 05, 2005 10:51 PM Subject: lucene and jsp > Hallo, > > I know my topic is a little bit

Re: Best Way To Index Database Using Lucene?

2005-11-06 Thread Manoj Kr. Sheoran
It depends on your requirement. If you want the realtime searching then you should go to your first approach otherwiser second is fine. --Manoj - Original Message - From: "Victor Lee" <[EMAIL PROTECTED]> To: Sent: Monday, November 07, 2005 7:21 AM Subject: Re: Best Way To Index Databas

Re: Searching the contents

2005-11-04 Thread Manoj Kr. Sheoran
Hi Hoss and All, I am happy with your suggestion. Does it possible to retrive the data order/sort by they were inserted in the index but without putting any extra column in the document? Regards, Manoj - Original Message - From: "Chris Hostetter" <[EMAIL PROTECTED]> To: Sent: Friday, Nov

Re: Searching the contents

2005-11-04 Thread Manoj Kr. Sheoran
you need to sort by into a single field if > possible, and try to do so numerically rather than as Strings. > > Erik > > > > On 4 Nov 2005, at 02:35, Manoj Kr. Sheoran wrote: > > > Hi Chris, > > Thanks for sharing your views with us. Is sorting works p

Re: Searching + Sorting in 3 milion documents

2005-11-03 Thread Manoj Kr. Sheoran
RAM amout is not enough or it's simple take help of o/s specific pages? Regards, Manoj - Original Message - From: "Otis Gospodnetic" <[EMAIL PROTECTED]> To: Cc: "Manoj Kr. Sheoran" <[EMAIL PROTECTED]> Sent: Friday, November 04, 2005 1:12 PM Subject:

Re: Searching the contents

2005-11-03 Thread Manoj Kr. Sheoran
conds for the first > sort. And subseconds with cache. > > Chris Lu > --- > Full-Text Search on Any Database > http://www.dbsight.net > > On 11/3/05, Manoj Kr. Sheoran <[EMAIL PROTECTED]> wrote: > > Hi, > > I am having 1,00,000 doc

Searching the contents

2005-11-03 Thread Manoj Kr. Sheoran
Hi, I am having 1,00,000 documents in a index but in near future it will be 3 million and more. I am somewhat concerned about the searhing process with this much number of document. I am giving order on some fields of documents. Could anybody tell be the expected result from lucene engine wit