index and search question

2004-08-08 Thread Dmitrii PapaGeorgio
Ok so when I index a file such as below
Document doc = new Document();
doc.Add(Field.Text(contents, new StreamReader(dataDir)));
doc.Add(Field.Keyword(filename, dataDir));
I can do a search as this
+contents:SomeWord  +filename:SomePath
Correct?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Index and Search question in Lucene.

2004-08-07 Thread Dmitrii PapaGeorgio
Ok so when I index a file such as below
Document doc = new Document();
doc.Add(Field.Text(contents, new StreamReader(dataDir)));
doc.Add(Field.Keyword(filename, dataDir));
I can do a search as this
+contents:SomeWord  +filename:SomePath
Correct?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


index and search question

2004-06-20 Thread Dmitrii PapaGeorgio
Let's say I index documents using this
 Document doc = new Document();
 doc.add(Field.Text(file1, (Reader) new InputStreamReader(is)));
 doc.add(Field.Text(file2, (Reader) new InputStreamReader(is2)));
And want to do a search like this
file1:Word file2:Word2
Basically doing a search using mutiple segments, file1 and file2 in the 
same query, how would this be possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]