> The problem I've had before was that I set my writer to null
> right after close it. That's why I got lock timeout exception
> when i try to create a the writer again. Guess I just need
> to close it, and re-open it would avoid the
> locking problems then.
It is valid to nullify the just closed
yes, myField is a tokenized field. I've used ChineseAnalyzer. here is an
examle text ??
Let me explain what exactly what I want.
myField is a tokenized field:
new Field("key",key, Field.Store.YES, Field.Index.TOKENIZED)
I sometimes need to find the exact match. What would be the best way to fin
What exactly is the value of myKey that doesn't work? What text did
you index (and with what Analyzer) that you expect to find?
If myField is a tokenized field, you need to be sure myKey has the
same analysis done to it to match what would have gotten indexed.
Erik
On Jul 9, 200
Hi folks,
I'd like to ask your advice about how to organize index for documents
in multiple languages.
As an input:
The database which holds the documents metadata. Each document consists
from
language-neutral attributes, such as: document_id, date, categories mapping
and language-dependent att
Thanks a lot Doron. I'm gonna give it a try now. The problem I've had before
was that I set my writer to null right after close it. That's why I got lock
timeout exception when i try to create a the writer again. Guess I just need
to close it, and re-open it would avoid the locking problems then.
Ok, here is my code:
Term term = new Term(myField, myKey);
TermQuery query = new TermQuery(term);
mySearcher.search(query);
If myKey is an English, everything works fine. If myKey is not an English,
it always return null.
With other types queries, I can use this:
Query query = new QueryParser(my
On Jul 8, 2006, at 3:54 PM, dan2000 wrote:
When non-English word is used in TermQuery, it always returns null.
With
other types query, I could pass in an language specific analyzer.
but with
this TermQuery, I can't find anyway to specify the language.
What other types of queries are you re
Jonny,
On Saturday 08 July 2006 11:41, John Bonn wrote:
> Hello folks !
>
> I'm looking for a way to search for a phrase, where in
> I shud get a hit even if some (N) words in the query
> phrase is not matching or even not inorder, i.e. it
> shud match maximum to the query string. I also need to
Hi,
In the Book "Lucene in Action" Chapter 6 "Extending search", there is an
example for indexing geographical information, and order the search results
based on distances between 2 points (x,y)->(y,z).
I think that it could be interesting for you.
Patricio
-Ursprüngliche Nachricht-
Von: G