Is CloudSolrClient thread-safe?

2017-03-28 Thread Mikhail Ibraheem
Hi, I have a project with solr and spring. I am have only one instance of CloudSolrClient at the context (singleton). This is because I believe that it should be only one instance to load balance between the nodes. I have big issue which doesn't occur all the times, it is intermittent:

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.175.190.72:8999/solr/product: Rollback is currently not supported in SolrCloud mode. (SOLR-4895)

2017-03-26 Thread Mikhail Ibraheem
Hi, When I try to rollback in solrCloud I get this exception : org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.175.190.72:8999/solr/product: Rollback is currently not supported in SolrCloud mode. (SOLR-4895) Does that mean there is no

RE: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.175.190.72:8999/solr/product: Rollback is currently not supported in SolrCloud mode. (SOLR-4895

2017-03-27 Thread Mikhail Ibraheem
Any help please? -Original Message- From: Mikhail Ibraheem Sent: 26 مارس, 2017 10:22 م To: solr-user@lucene.apache.org Subject: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.175.190.72:8999/solr/product: Rollback is currently

RE: Is CloudSolrClient thread-safe?

2017-03-28 Thread Mikhail Ibraheem
ent thread-safe? On 3/28/2017 8:13 AM, Mikhail Ibraheem wrote: > I have a project with solr and spring. I am have only one instance of > CloudSolrClient at the context (singleton). > > This is because I believe that it should be only one instance to load balance > between th

RE: Group by range results

2017-03-16 Thread Mikhail Ibraheem
Any help on this please?   From: Mikhail Ibraheem Sent: 15 مارس, 2017 08:53 م To: solr-user@lucene.apache.org Subject: Group by range results   Hi,  Can we group by ranges? something like: facet=true stats=true stats.field={!tag=piv1 min=true max=true}price facet.range={!tag=r1

Group by range results

2017-03-15 Thread Mikhail Ibraheem
Hi, Can we group by ranges? something like: facet=true stats=true stats.field={!tag=piv1 min=true max=true}price facet.range={!tag=r1}manufacturedate_dt facet.range.start=2006-01-01T00:00:00Z facet.range.end=NOW/YEAR facet.range.gap=+1YEAR facet.pivot={!stats=piv1}r1 Where I want the max

Cluster without sharding

2017-07-12 Thread Mikhail Ibraheem
Hi,We are using some features like collapse and joins that force us not to use sharding for now. Still i am checking for possibilities for load balancing and high availability.1- I think about using many solr instances run against the same shard file system. This way all instances will work

RE: JSON facet performance for aggregations

2017-04-30 Thread Mikhail Ibraheem
very slow. On numeric fields it runs fine with doc value enabled. On Apr 30, 2017 1:41 PM, "Mikhail Ibraheem" <mikhail.ibrah...@oracle.com> wrote: > Hi Vijay, > It is already numeric field. > It is huge difference between json and flat here. Do you know the > reas

JSON facet performance for aggregations

2017-04-30 Thread Mikhail Ibraheem
Hi, I am trying to do aggregation with JSON faceting but performance is very bad for one of the requests: json.facet={ studentId:{ type:terms, limit:-1, field:"studentId", facet:{ x:"sum(grades)" } } }

RE: JSON facet performance for aggregations

2017-04-30 Thread Mikhail Ibraheem
@lucene.apache.org Subject: Re: JSON facet performance for aggregations Json facet on string fields run lot slower than on numeric fields. Try and see if you can represent studentid as a numeric field. On Apr 30, 2017 1:19 PM, "Mikhail Ibraheem" <mikhail.ibrah...@oracle.com> wrote: >

pagination of results of grouping by more than one field

2017-04-30 Thread Mikhail Ibraheem
Hi, I have a problem that I need to group by X and Y and aggregator on Z and I need to paginate on the results. The results aren't flat they are in hierarchy so how to flat the results so we can paginate on them for each combination of X,Y like: Computers, Computer Laptops,

RE: JSON facet performance for aggregations

2017-04-30 Thread Mikhail Ibraheem
for aggregations It is odd there would be quite such a big performance delta. What version of solr are you using? What is the fieldType of "grades"? -Yonik On Sun, Apr 30, 2017 at 5:15 AM, Mikhail Ibraheem <mikhail.ibrah...@oracle.com> wrote: > 1- > studentId has docValue

CollapsingQParserPlugin with more than one field

2017-05-17 Thread Mikhail Ibraheem
Hi, I want to group huge documents with 3 or 4 fields, but CollapsingQParserPlugin works only with one field. If I add more than one fq for CollapsingQParserPlugin for different fields, it doesn't group the fields but it uses the group of the first field as input to the second one and hence

How to partition the collection

2017-05-12 Thread Mikhail Ibraheem
Hi, I have a denormalized dataset and hence has duplicate records. When I do any aggregation the result is wrong because it calculates duplicate data. So I want to partition the dataset with the unique attribute then do the aggregation or grouping against the partitioned results. 1-

Solr query with more than one field

2017-06-01 Thread Mikhail Ibraheem
Hi,I have 2 fields "cost" and "value" at my records. I want to get all documents that have "value" greater than "cost". Something likeq=value:[cost TO *] Please advise. Thanks

Function queries with Json facet

2017-06-04 Thread Mikhail Ibraheem
Hi,I have a date field date_of_birth and have double field grade. I can easily get the sum of grades per date_of_birth value using:{date_of_birth:{          type:terms,        field:"date_of_birth", facet: {   "metric":"sum(grade)" }  }} But what if I want to group only part of the

RE: JSON facet performance for aggregations

2017-05-08 Thread Mikhail Ibraheem
quick lookups on studentId, it would make sense for it to be indexed (and why is it a double, anyway?) I'll open up a JIRA issue for the first problem (don't defer metrics if we're going to return all buckets anyway) -Yonik On Sun, Apr 30, 2017 at 8:58 AM, Mikhail Ibraheem <mikhail.ib

RE: pagination of results of grouping by more than one field

2017-05-01 Thread Mikhail Ibraheem
Hi, Any clue? Thanks -Original Message- From: Mikhail Ibraheem Sent: Sunday, April 30, 2017 10:09 AM To: solr-user@lucene.apache.org Subject: pagination of results of grouping by more than one field Hi, I have a problem that I need to group by X and Y and aggregator on Z and I need

Solr parallel streaming

2017-05-05 Thread Mikhail Ibraheem
Hi, I am confused about the difference between solr nodes and worker nodes, are these the same? Can I have more than one worker nodes in one solr node? If we have one solr node, can we use parallel streams? What it means to have worker collection that has no data? Please advise.

Overseer task timeout

2017-08-30 Thread Mikhail Ibraheem
Hi,We have one node zookeeper and one no solr. Sometimes when trying to create or delete collection there is "SEVERE: null:org.apache.solr.common.SolrException: delete the collection time out:180s" error. After checking the code I found that solr puts a task node to zookeeper 

Zookeeper issues

2017-08-28 Thread Mikhail Ibraheem
Hi,When trying to ingest data into solr, got a lot of zookeeper exceptions and the load fails :org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /collections/WIP_DWO/state.json  org.apache.solr.common.SolrException: Could not load collection

Re: Overseer task timeout

2017-09-01 Thread Mikhail Ibraheem
Any help please? From: Mikhail Ibraheem <arsenal2...@yahoo.com> To: Solr-user <solr-user@lucene.apache.org> Sent: Wednesday, 30 August 2017, 18:36 Subject: Overseer task timeout Hi,We have one node zookeeper and one no solr. Sometimes when trying to create or delet

Re: Overseer task timeout

2017-09-01 Thread Mikhail Ibraheem
Hi,Zookeeper 3.4.10 and solr 6.6.We prepare to use only one node or more so we currently test with this case. Did you face it before, or do you know if it is a solr bug? ThanksMikhail From: Susheel Kumar <susheel2...@gmail.com> To: solr-user@lucene.apache.org; Mikhail Ibraheem <

Solr and vulnerabilities CVE-2017-15718 and CVE-2017-15713

2018-04-16 Thread Mikhail Ibraheem
Hi,Is solr affected by these two vulnerabilities CVE-2017-15718 and CVE-2017-15713? ThanksMikhail

ManagedIndexSchema Bad version when trying to persist schema

2018-10-11 Thread Mikhail Ibraheem
Hi,We upgraded to Solr 7.5, we try to ingest to solr using solrJ in concurrent updates (Many threads).We are getting this exception:o.a.s.s.ManagedIndexSchema Bad version when trying to persist schema using 1 due to: org.apache.zookeeper.KeeperException$BadVersionException: KeeperErrorCode =

Re: ManagedIndexSchema Bad version when trying to persist schema

2018-10-11 Thread Mikhail Ibraheem
sage telling you how to disable it via curl, but I'd modify my solrconfig.xml file to remove it permanently) Best, Erick On Thu, Oct 11, 2018 at 8:02 AM Mikhail Ibraheem wrote: > > Hi,We upgraded to Solr 7.5, we try to ingest to solr using solrJ in > concurrent updates

org.apache.solr.search.SyntaxError with Join and Tag

2019-07-03 Thread Mikhail Ibraheem
Hi,This query :{!tag=_Customer_facet}{!join fromIndex=sf-details toIndex=Downloads from=_CUSTOMER_facet to=_Customer_facet}_ACTIVITY_facet:("Welcome") gives exception org.apache.solr.search.SyntaxError: Cannot parse '_ACTIVITY_facet:((\"Welcome\"': Encountered \"\" at line 1, column 27 While

Icelandic support in Solr

2019-11-26 Thread Mikhail Ibraheem
Hi,Does Solr supports Icelandic language out of the box? If not, can you please let me know how to add that with custom analyzers? Thanks