Re: Concurrent Execution Exception

2013-02-14 Thread Ganesh M
I am having 5 shards and all having similar kind of data. This issue is happening in only one shard.   I am adding a string field to the index. Its value is numeric ("1301010101") and this field is used for sorting. During search,  i am creating a sortfield object with SortField.Int type. This

Invitation to use Google Talk

2013-02-14 Thread Google Talk
--- You've been invited by Evert Wagenaar to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-e6aa50cf77-4955661429-8fyd2NmUKwRArL09hnyx8JrNzQA

Spatial indexing: IndexOutOfBounds in QuadPrefixTree

2013-02-14 Thread Paul Alexandrow
Hi List, I've encountered this problem using Solr (4.1.0), but as far as I could trace it, I think it belongs to this list. I have the following field type in my schema: As you can see, I'm using spatial indexing to store opening hours (1148327 are epoch hours to a reasonable limit for my

RE: Concurrent Execution Exception

2013-02-14 Thread Uwe Schindler
I have no idea what you are doing, the issue here could be a field with mixed old-style string only numerics and new style numeric fields. If you sort against such a "mixed" field you get this error. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thet

RE: IndexReader.reopen() If Index Has Been Rebuilt

2013-02-14 Thread Uwe Schindler
It works! - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Ian Lea [mailto:ian@gmail.com] > Sent: Thursday, February 14, 2013 3:11 PM > To: java-user@lucene.apache.org > Subject: Re: IndexReader.reope

Re: IndexReader.reopen() If Index Has Been Rebuilt

2013-02-14 Thread Michael McCandless
This use case is fine: you can fully re-index into an index that's held open by an IndexReader. It's best to use IndexWriterConfig's OpenMode.CREATE to do this (instead of rm -rf /path/to/index): this way if something goes wrong with your indexing before it has a chance to commit (eg JVM or OS cra

Re: IndexReader.reopen() If Index Has Been Rebuilt

2013-02-14 Thread Ian Lea
I've never tried reopen() on a completely new index, but if it works, it works. Try it. I'm not aware of any documentation explicitly mentioning this. The benefit of using reopen() rather than close/open is that if only some segments have changed the reopen is less costly. For a brand new index

Re: Can't find LimitTokenCountAnalyzer in 4.1

2013-02-14 Thread Ian Lea
It's in 4.1, just not necessarily in the same place. $ jar -tf lucene-analyzers-common-4.1.0.jar | grep Limit org/apache/lucene/analysis/miscellaneous/LimitTokenCountAnalyzer.class org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.class org/apache/lucene/analysis/miscellaneous/LimitTo

Concurrent Execution Exception

2013-02-14 Thread Ganesh M
Could any one throw light on this. Im using Lucene 3.0.3. I am having multiple shards and using ParallelMultiSearcher to search across shards.   Exception: java.util.concurrent.ExecutionException: java.lang.NumberFormatException: Invalid shift value in prefixCoded string (is encoded value reall

Need Help:How to Get the enumeration of Terms Ending with a given word

2013-02-14 Thread VIGNESH S
Hi, I have two questions 1.How to Get the enumeration of Terms Ending with a given word I saw we can get enumerations of word starting at a given word by Indexreader.terms(term())) method 2.Actually I am doing an multiphrase query.In that I do do a suffix query on first word..How can i do please

Re: How to add a field to hold a Java map object?

2013-02-14 Thread Ian Lea
You should get back the stored value from the index as it was when you added it. But depending on your analyzer, and your requirements, you may not be able to search as you want. Read up on analysis and how to use it or not use it for individual fields, stored and/or indexed. Read Lucene in Acti

Re: How to add a field to hold a Java map object?

2013-02-14 Thread Ian Lea
StringField is in versions 4.x. You should have said you were using an old version. -- Ian. On Thu, Feb 14, 2013 at 3:46 AM, Cheng wrote: > http://lucene.apache.org/core/4_0_0-BETA/core/org/apache/lucene/document/StringField.html > > I found StringField API here, however, it seems that String