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
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
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:
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
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
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,
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
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@
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
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
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
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
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
13 matches
Mail list logo