Thanks Doron. The site you provided doesn't support firefox, that's why had
problem with downloading.
Your code works fine and I've just noticed I didn't change the create
parameter to false when I've leaned the index directory. Sorry for my
mistake.
Thanks a lot for your help Doron. You advic
can't access the file:
Forbidden
Remote Host: [62.172.205.164]
You do not have permission to access
http://cdoronc.20m.com/tmp/indexingThreads.zip
Data files must be stored on the same site they are linked from.
Thank you for using 20m.com
--
View this message in context:
http://www.nabble.
I did clean everything but still getting the same problem. I'm using lucene
2.0. Do you get the same problem on your machine?
--
View this message in context:
http://www.nabble.com/modify-existing-non-indexed-field-tf1905726.html#a5288759
Sent from the Lucene - Java Users forum at Nabble.com.
Thanks for your advice Doron. I've tried changing to one indexing thread
(instead of 5) but still get the same problem. can't figure out why this
happens.
--
View this message in context:
http://www.nabble.com/modify-existing-non-indexed-field-tf1905726.html#a5266343
Sent from the Lucene - Java
Here is the simplified code that causes problem (Lock obtain timed out).
MyIndexer is used for indexing and searching. IndexTest starts 5 threads for
indexing and 100 threads for searching.
MyIndexer.java
public class MyIndexer
{
File m_IndexFile;
IndexReader m_IndexReader;
Directory
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
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
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.
--
View this message in context:
http://www.nabble.com/TermQuery-doesn%27t-support-non
Thanks a lot Doron.
I thought I had to close all readers and searchers in order to new
IndexWriter, otherwise I keep getting Lock timeout exception in a
multithreaded environment. In my case, modifying/adding/deleting only
happens occasionally, so I don't have a IndexWritter that is open all the
but if you remove it and add it again, you'll need to re-index it again.
don't you? When you do re-index, you'll have to close the reader, which
would pause the search. Any better way of doint it?
--
View this message in context:
http://www.nabble.com/modify-existing-non-indexed-field-tf1905726.
Is it possible to modify a stored field but not indexed? for example, if I
have a field like this:
new Field("address", address, Field.Store.YES, Field.Index.NO)
and I want to modify it like this:
hits.doc(i).getField("address").set("11 Diana Street");
Is it possible?
--
View this message in co
12 matches
Mail list logo