Re: getting started

2008-08-01 Thread Ian Lea
Each sentence will be a document. Read the file a line at a time and make each line a separate document. The user input will be a word, or words, which you can pass through a QueryParser to get a Query which can be used to search the index, and which will return matching documents i.e. sentences.

Re: getting started

2008-08-01 Thread roy-lucene-user
Hello Brittany, I think the easiest thing for you to do is make each line a Document. You might want a FileName and LineNumber field on top of a "Text" field, this way if you need to gather all the lines of your File back together again you can do a search on the FileName. So in your case: Docu

RE: getting started

2008-08-01 Thread Brittany Jacobs
Thank you so much! -Original Message- From: Ian Lea [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2008 9:51 AM To: java-user@lucene.apache.org Subject: Re: getting started Each sentence will be a document. Read the file a line at a time and make each line a separate document

Re: getting started

2008-08-01 Thread ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)
Why should each line be a Document ? If there is a single document having each line as a Field, then the search would result in a single Document as a 'hit' not the individual lines matching it. Is this right ? Nagesh On Fri, Aug 1, 2008 at 7:21 PM, <[EMAIL PROTECTED]> wrote: > Hello Brittany, >

Re: getting started

2008-08-01 Thread Ian Lea
Yes, that is correct. -- Ian. On Fri, Aug 1, 2008 at 2:59 PM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) <[EMAIL PROTECTED]> wrote: > Why should each line be a Document ? If there is a single document having > each line as a Field, then the search would result in a single Document as a > 'hit' not the indiv

RE: getting started

2008-08-01 Thread Brittany Jacobs
:[EMAIL PROTECTED] Sent: Friday, August 01, 2008 10:00 AM To: java-user@lucene.apache.org Subject: Re: getting started Why should each line be a Document ? If there is a single document having each line as a Field, then the search would result in a single Document as a 'hit' not the

Re: getting started

2008-08-01 Thread ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)
Thanks, Ian ! On Fri, Aug 1, 2008 at 7:43 PM, Ian Lea <[EMAIL PROTECTED]> wrote: > Yes, that is correct. > > > -- > Ian. > > > On Fri, Aug 1, 2008 at 2:59 PM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) > <[EMAIL PROTECTED]> wrote: > > Why should each line be a Document ? If there is a single document having >

Re: getting started

2008-08-01 Thread ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)
Hi Brittany, "What is the web address you are seeing this message on?" Me ? I am not sure, I followed the question. Nagesh On Fri, Aug 1, 2008 at 7:45 PM, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) < [EMAIL PROTECTED]> wrote: > Thanks, Ian ! > > > On Fri, Aug 1, 2008 at 7:43 PM, Ian Lea <[EMAIL PROTECTED]> w

Re: getting started

2008-08-01 Thread roy-lucene-user
That certainly works if the intent is to grab the entire file. If all you want is that particular line to be returned in the search then that's not going to work. Let's say the files was made up of a million lines and the text was stored in the index (I know, absurd). When grabbing the Document

Re: getting started

2008-08-02 Thread Erick Erickson
Well, this could get to be a really ugly query. Let's say you have 10 lines. Then the doc would have 10 different fields? ("line1", "line2" etc.)? Then to search it you have to have an or clause across all fields. And a file with 100,000 lines would be a 100,000 term query.. Or I misunderstand

RE: getting started

2008-08-04 Thread Brittany Jacobs
Ok, say each line is an address. So the text file would look like: 123 Water St. Somerville, GA 12345 456 Easy St. Hope, CA 45676 34 Ocean Blvd. Staten Island, NY 93843 The file would have hundreds of thousands of addresses. So the user would type "34, St" in the search box and press a "Search"

RE: Getting started with Lucene

2009-03-20 Thread Uwe Schindler
As I know, the demos are not compiled by default in the release (because they show how you use Lucene and are so included as .java source files in the binary distribution). You have to build the demos using ANT. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de e

Re: Getting started with Lucene

2009-03-20 Thread nitin gopi
hi you should add classpath of both lucene demo jar file and lucene core jar file . then run the command to build the index final step is to run the command to search files nitin On Fri, Mar 20, 2009 at 6:05 PM, Uwe Schindler wrote: > As I know, the demos are not compiled by default in the rel

Re: Getting Started with Korean

2005-11-11 Thread Youngho Cho
Hello, - Original Message - From: "Grant Ingersoll" <[EMAIL PROTECTED]> To: Sent: Friday, November 11, 2005 10:36 PM Subject: Getting Started with Korean > Hi, > > Was wondering if someone could help me out with a few things in Korean > as related to Lucene: > 1. Which Analyzer do y

Re: Getting Started with Korean

2005-11-11 Thread Cheolgoo Kang
Hi, On 11/11/05, Grant Ingersoll <[EMAIL PROTECTED]> wrote: > Hi, > > Was wondering if someone could help me out with a few things in Korean > as related to Lucene: > 1. Which Analyzer do you recommend? From the list, I see that some > have had success with the StandardAnalyzer. Are there any c

Re: Getting Started with Korean

2005-11-12 Thread Erik Hatcher
On 12 Nov 2005, at 01:16, Cheolgoo Kang wrote: Hi, Was wondering if someone could help me out with a few things in Korean as related to Lucene: 1. Which Analyzer do you recommend? From the list, I see that some have had success with the StandardAnalyzer. Are there any caveats I should be