Re: modify existing non-indexed field

2006-07-09 Thread Doron Cohen
> 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

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread dan2000
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

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread Erik Hatcher
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

Indexing and searching multiple languages

2006-07-09 Thread Alexander Mashtakov
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

Re: modify existing non-indexed field

2006-07-09 Thread dan2000
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.

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread dan2000
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

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread Erik Hatcher
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

Re: SpanNearQuery with support for missing words

2006-07-09 Thread Paul Elschot
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

AW: Location Search: Latitude + Longitude

2006-07-09 Thread Patricio
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