Re: n-Field search w/PhraseQuery

2005-07-06 Thread Yousef Ourabi
Thanks for the reply, clears things up, have to use boolean query. Thank! On 7/6/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > On Jul 6, 2005, at 3:01 PM, Yousef Ourabi wrote: > > > Quick question on the proper-way of searching multiple fields for > > phras

n-Field search w/PhraseQuery

2005-07-06 Thread Yousef Ourabi
Quick question on the proper-way of searching multiple fields for phrases? Would I do this: BooleanQuery titleOrContent = new BooleanQuery(); PhraseQuery titlePhraseSearch = new PhraseQuery(); (add filed x, and term 1, 2) PhraseQuery contentPhraseSearch = new PhraseQuery(); (add field y, and term

PhraseQuery Incompatible format version

2005-07-05 Thread Yousef Ourabi
Hey All: Quick Question about the following error I am getting when I use a string tokenizer to parse the query string. The query I pass to is Great Expections / Great Expectations, both are two tokens however? phraseQuery.add(new Term("content", tok.nextToken())); IOException caught SearchByTerm:

Getting all terms from Index

2005-07-01 Thread Yousef Ourabi
Hello all, I am getting odd results, documents without the keyword I search for are being returned. I want to get all the indexed (searchable) inside the index, then create queries for those words with explaining (explaination object) set to see what matches to what and why? Thanks in advance, You

Nested Boolean Query

2005-06-30 Thread Yousef Ourabi
Hello: I have two fields in my document a title, term and content. I want to programatically create a query that will return all documents that has both title AND content. I created a boolean query that looks like this. The logican return I want are any documents that Must have the alias passed to

Bad File Descriptor

2005-06-27 Thread Yousef Ourabi
Hello: I have yet another file-system related error, if I set the boolean create to true on idex writer, I have no problems (other than never getting more than one hit, because I create and close the idnexwriter in one method to assure the class is the only instance) However, if I set it to false,

Re: Lock File exceptions

2005-06-27 Thread Yousef Ourabi
gments (No such file or directory) On 6/27/05, Yousef Ourabi <[EMAIL PROTECTED]> wrote: > Hello: > I get this lock-file exception on both Windows and Linux, my app is > running inside tomcat 5.5.9, jvm 1.5.03...has anyone seen this before? > > If I delete the LOCK file it w

Lock File exceptions

2005-06-27 Thread Yousef Ourabi
Hello: I get this lock-file exception on both Windows and Linux, my app is running inside tomcat 5.5.9, jvm 1.5.03...has anyone seen this before? If I delete the LOCK file it works, but obviously I shouldn't do that...Just wondering what's up? IOException caught here: Lock obtain timed out: Lock@

Indexing Forums (Document & Field Paradigm)

2005-06-27 Thread Yousef Ourabi
Hello: Thanks for all the help so far it has been fantastic. I have a question on the document and field paradigm, this works great for flat-files, like a word document, or web-page but what about nested forums (ala slashdot) where in theory a specifc chat thread is nested or is nested inside anoth

Document ID

2005-06-24 Thread Yousef Ourabi
Hello: Is there any way to force the document id inside the lucene index, if I have my own internal numbering scheme, it would be nice to have that reflected inside the lucene index...anyway? IF not is the document ID created on creation or on addition to the index? And is there a way to retrieve

Field.Keyword vs new Field(String, String, true, true, true)

2005-06-24 Thread Yousef Ourabi
I have a quick question on the Field class. What is the difference between this: for () Field content = new Field("content", contentArray[i], true, true, true, true); doc.add(content); and this: doc.add(Field.Keyword("userAlias", userAlias )); In the first example where the constructor is uesed

Junit Tests for Indexer / Searcher

2005-06-21 Thread Yousef Ourabi
Hey All: So Obviously the lucene dev-team uses unit tests when building the api, but what are people's experiences with using unit tests to test that indexing is working, that searching is working. Are there pre-developed test-suits for such things, so that I can make a change to a some search para

Configuration Strategies

2005-06-20 Thread Yousef Ourabi
Hello: I have a couple of quesitons on configuration strategies. I have a project where I have to deal with changing search requirements, for example one search may want to use term-vectors to find "keywords like this" or whatever, and the next may not. Another requirement is that when I call a "s