ucene - Solr - Nutch
- Original Message ----
> From: Brittany Jacobs <[EMAIL PROTECTED]>
> To: java-user@lucene.apache.org
> Sent: Friday, August 8, 2008 11:20:11 AM
> Subject: Need help searching
>
> I want to search all the documents for a string.
> So I have the follow
I want to search all the documents for a string.
So I have the following. But Hits isn't returning anything.
What am I doing wrong? Thanks in advance.
File f = new File("AddressData.txt");
IndexWriter writer;
try {
writer = new IndexWriter("C:\\", new StandardAnalyzer(), true);
FileInputStream
Oh! Thank you very much.
Brittany Jacobs
Java Developer
JBManagement, Inc.
12 Christopher Way, Suite 103
Eatontown, NJ 07724
ph: 732-542-9200 ext. 229
fax: 732-380-0678
email: [EMAIL PROTECTED]
-Original Message-
From: Ian Lea [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2008
ument(doc);
}
in.close();
writer.close();
Also, I have tokenized the content and stored it so that it could be
fetched, you might just want to have a ref key instead of storing the
entrire content though. Upto you for implementation.
--
Anshum
http://ai-cafe.blogspot.com
On Thu, Aug 7, 2008 at 1:
Thank you so much!
Brittany Jacobs
Java Developer
JBManagement, Inc.
12 Christopher Way, Suite 103
Eatontown, NJ 07724
ph: 732-542-9200 ext. 229
fax: 732-380-0678
email: [EMAIL PROTECTED]
-Original Message-
From: Anshum [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 10:30 PM
Hello, I am new to all this. I need to read in a text file and have each
line in the file be a document.
The LineDocMaker seems to be intended for this purpose. But I can't figure
out how to read the data into it.
Any examples would be greatly appreciated.
e lines of your File back together again
> > you
> > can do a search on the FileName.
> >
> > So in your case:
> >
> > Document 1
> > FileName: [the file]
> > LineNumber: 1
> > Text: I like apples
> > Document 2
> > ...etc
> >
&g
What is the web address you are seeing this message on?
Brittany Jacobs
Java Developer
JBManagement, Inc.
12 Christopher Way, Suite 103
Eatontown, NJ 07724
ph: 732-542-9200 ext. 229
fax: 732-380-0678
email: [EMAIL PROTECTED]
-Original Message-
From: ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) [mailto
.
--
Ian.
On Fri, Aug 1, 2008 at 2:28 PM, Brittany Jacobs
<[EMAIL PROTECTED]> wrote:
> Just trying to grasp the concept.
>
>
>
> I want to search a text file where each line is a separate item to be
> searched. When text it entered by the user, I want to return all the
li
Just trying to grasp the concept.
I want to search a text file where each line is a separate item to be
searched. When text it entered by the user, I want to return all the lines
in which that text appears.
For example, if the text file has:
I like apples.
I went to the store.
I bought an
apple.
If the user searches "apple", I want it to return the first and third
sentences.
Is each sentence a Token? Is the user input going to be a QueryParser? How
should I read in the file so that each line of text is a token to search?
Thanks in advance.
Britt
11 matches
Mail list logo