Solr JSON facet range out of memory exception

2016-04-10 Thread Ali Nazemian
Dear all Solr users/developeres, Hi, I am going to use Solr JSON facet range on a date filed which is stored as long milis. Unfortunately I got java heap space exception no matter how much memory assigned to Solr Java heap! I already test that with 2g heap space for Solr core with 50k documents!! I

Solr document duplicated during pagination

2016-04-10 Thread Anil
HI, i am loading solr recrods for a particular query to application cache. Lets say total number of eligible records (numFound) are 501. my solr queries would be page 1 : q=*:*&start=0&rows=100 page 2 : q=*:*&start=100&rows=100 page 3 : q=*:*&start=200&rows=100 page 4 : q=*:*&start=300&rows=10

Re: Solr JSON facet range out of memory exception

2016-04-10 Thread Yonik Seeley
On Sun, Apr 10, 2016 at 3:47 AM, Ali Nazemian wrote: > Dear all Solr users/developeres, > Hi, > I am going to use Solr JSON facet range on a date filed which is stored as > long milis. Unfortunately I got java heap space exception no matter how > much memory assigned to Solr Java heap! I already t

Re: Set Config API user properties with SolrJ

2016-04-10 Thread Georg Sorst
Addendum: Apparently the code works fine with HttpSolrClient, but not with EmbeddedSolrServer (used in our tests).The most recent version I tested this was 5.5.0 Georg Sorst schrieb am So., 10. Apr. 2016 um 01:49 Uhr: > Hi, > > how can you set Config API values from SolrJ? Does anyone have an ex

Re: Solr document duplicated during pagination

2016-04-10 Thread Lior Sapir
It will not happen but you must: 1. Have Unique ID for each document 2. Make sure you define this field in the schema.xml YOUR_DOC_UQ_ID_FIELD_NAME 3. If you are using multiple shards query and not using solr cloud then you have to make sure you are not inserting the same document into two differ

Error executing query

2016-04-10 Thread Adel Mohamed Khalifa
Hello All, When running my search method I had this exception QueryResponse res = server.query(params); ex = (org.apache.solr.client.solrj.SolrServerException) org.apache.solr.client.solrj.SolrServerException: Error executing query Regards, Adel

Re: Error executing query

2016-04-10 Thread Erick Erickson
You have to provide a lot more context before anyone can say anything meaningful. You might want to review: http://wiki.apache.org/solr/UsingMailingLists Best, Erick On Sun, Apr 10, 2016 at 6:30 AM, Adel Mohamed Khalifa wrote: > Hello All, > When running my search method I had this exception >

Re: Solr document duplicated during pagination

2016-04-10 Thread Erick Erickson
If the index is being updated while indexing, this can happen. But what do you mean by "i see page 1 & 2 has common documents and similarly in other pages as well"? Is it the _same_ id ( as Lior mentions)? Docs are "the same" to Solr if and only if they have the same Best, Erick On Sun, Apr 1

Limiting regex queries

2016-04-10 Thread Michael Harkins
Hey all, I am using lucene and solr version 4.2, and was wondering what would be the best way to not allow regex queries with very large numbers. Something like blah{1234567} or blah{1234, 123445678}

Re: Limiting regex queries

2016-04-10 Thread Erick Erickson
OK, why is this a problem? This smells like an XY problem, you want to take some specific action, but it's not at all clear what the problem is. There might be other ways of doing this. If you're allowing regexes on numeric fields, using real number fields (trie) and using range queries is a much

Re: Limiting regex queries

2016-04-10 Thread Michael Harkins
Well the originally architecture is out of my hands , but when someone sends in a query like that, if the range is a large number , my system basically shuts down and the cpu spikes with a large increase in memory usage. The queries are for strings. The query itself was an accident but I want to be

Re: Saving Solr filter query.

2016-04-10 Thread Pritam Kute
Thanks so much Erick and John for your inputs. This was surely helpful input for me. I tried using RDBMS and stored user specific queries into RDBMS. It is working for me. Thanks & Regards, -- *Pritam Kute* On Thu, Apr 7, 2016 at 3:01 AM, John Bickerstaff wrote: > Right... You can store that