Re: Solr or Elasticsearch

2018-03-22 Thread Shawn Heisey
On 3/22/2018 7:13 AM, Steven White wrote: There are some good write ups on the internet comparing the two and the one thing that keeps coming up about Elasticsearch being superior to Solr is it's analytic capability. However, I cannot find what those analytic capabilities are and why they

Re: Solr or Elasticsearch

2018-03-22 Thread Minoru Osuka
Hi Steve, I have contributed the Solr Prometheus Exporter that allows users to monitor not only Solr metrics which come from Metrics API, but also facet counts which come from Searching and responses to Collections API commands and PingRequestHandler requests. I think that you can also

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for the input. I have got this to work by using cygwin. Regards, Edwin On 23 March 2018 at 07:04, Chris Hostetter wrote: > : > : Ah, there's the extra bit of context: > : > PS C:\curl> .\curl ' > : > : You're using Windows perhaps? If so, it's probably a

Re: Solr Autoscaling multi-AZ rules

2018-03-22 Thread Noble Paul
The meaning of Replication Factor is screwed up. Replication factor is a number. RF=3 means there are 3 replicas for each shard. I understand that {"replica": "<7", "node":"#ANY"} may result in two replicas of the same shard ending up on the same node. However, the other rule should prevent this:

Re: Solr or Elasticsearch

2018-03-22 Thread Joel Bernstein
Solr 7.3 has very sophisticated math capabilities described below: https://github.com/joel-bernstein/lucene-solr/blob/math_expressions_documentation/solr/solr-ref-guide/src/math-expressions.adoc This is the userguide for math expressions which didn't make the 7.3 release but all the functions

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Yes, I'm running this on Windows, using Windows Powershell "curl" command. Will try out other tools like cygwin. Thanks you. Regards, Edwin On 23 March 2018 at 06:52, Yonik Seeley wrote: > Ah, there's the extra bit of context: > > PS C:\curl> .\curl ' > > You're using

Re: Error in indexing JSON with space in value

2018-03-22 Thread Chris Hostetter
: : Ah, there's the extra bit of context: : > PS C:\curl> .\curl ' : : You're using Windows perhaps? If so, it's probably a shell issue : getting all of the data to the "curl" command. Yep.. and you cna even see in the trace output that curl thinks the entire JSON payload you want to send is

Re: Error in indexing JSON with space in value

2018-03-22 Thread Yonik Seeley
Ah, there's the extra bit of context: > PS C:\curl> .\curl ' You're using Windows perhaps? If so, it's probably a shell issue getting all of the data to the "curl" command. Something like cygwin or WSL (Windows Subsystem for Linux) may make your life easier. -Yonik On Thu, Mar 22, 2018 at

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for your reply. This is the curl command that I run, with the "--trace -" output. PS C:\curl> .\curl 'http://localhost:8983/solr/collection1/update/json/docs? split=/|/orgs ' -H 'Content-type:application/j son' -d ' {

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for your reply. PS C:\curl> .\curl ' http://localhost:8983/edm/emails6/update/json/docs?split=/|/orgs' -H 'Content-type:application/j son' -d ' { "id":"1", "name_s": "Joe Smith", "phone_s": 876876687, "orgs": [ { "name1_s": "Microsoft", "city_s": "Seattle",

Re: Legacy replication slave node full sync

2018-03-22 Thread Erick Erickson
1a> Replication pulls down changed segments, which includes _changed_ segments. Say I have 10 segments in my index and they all get merged into a single segment that now contains the entire index. Then the changed segment is replicated. 1b> If you're polling interval is such that all the segments

Re: Solr or Elasticsearch

2018-03-22 Thread Steven White
Thank you all for your input. The one question still remains: what are the list of ES analytics that are not available, out-of-the-box, in Solr? Is there such a list? Steve On Thu, Mar 22, 2018 at 2:07 PM, Rahul Singh wrote: > I have the same experience as

Re: Error in indexing JSON with space in value

2018-03-22 Thread Yonik Seeley
It looks like a curl globbing issue from the curl error message you included: "curl: (3) [globbing] bad range specification in column 39" You can try turning off curl globbing with the -g param. That may not be the only issue though, as the command shown shouldn't have triggered curl globbing.

Legacy replication slave node full sync

2018-03-22 Thread Yunee Lee
Hi, I have two questions regarding legacy master /slave node replication architecture. We noticed that slave node does full sync time to time. 1. What type of event or configuration does trigger the full sync in slave node? I can not locate exact time and frequency from the logs. Please let

RE: Solr or Elasticsearch

2018-03-22 Thread Rahul Singh
I have the same experience as Daphne. I’ve used SolR for more “document” / “content” / “Knowledge” search and Elastic as a Log store or Mongo replacement. SolR has more ways to return/injest data such as XML, JSON, or even CSV which is appealing. The binary protocol in SolrJ is also appealing

Re: Error in indexing JSON with space in value

2018-03-22 Thread Shawn Heisey
On 3/22/2018 9:48 AM, Zheng Lin Edwin Yeo wrote: > I am trying to index the following JSON, in which there is a space in the > name "Joe Smith". > > .\curl 'http://localhost:8983/solr/collection/update/json/docs?split=/|/orgs > ' > -H 'Content-type:application/json' -d ' > { > "id":"1", >

Re: Error in indexing JSON with space in value

2018-03-22 Thread Chris Hostetter
I can't reproduce the problem you described -- using 7.2.1 and the techproducts example i can index a JSON string w/white space just fine... $ bin/solr -e techproducts $ curl 'http://localhost:8983/solr/techproducts/update/json/docs' -H 'Content-type:application/json' -d ' { "id":"1",

Re: LTR not able to upload org.apache.solr.ltr.model.MultipleAdditiveTreesModel

2018-03-22 Thread Roopa Rao
Here is the stacktrace Caused by: org.apache.solr.common.SolrException: Failed to create new ManagedResource /schema/model-store of type org.apache.solr.ltr.store.rest.ManagedModelStore due to: org.apache.solr.common.SolrException: org.apache.solr.ltr.model.ModelException: Model type does not

InetAddressPoint support in Solr or other IP type?

2018-03-22 Thread Mike Cooper
I have scoured the web and cannot find any discussion of having the Lucene InetAddressPoint type exposed in Solr. Is there a reason this is omitted from the Solr supported types? Is it on the roadmap? Is there an alternative recommended way to index and store Ipv4 and Ipv6 addresses for optimal

Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Hi, I am trying to index the following JSON, in which there is a space in the name "Joe Smith". .\curl 'http://localhost:8983/solr/collection/update/json/docs?split=/|/orgs ' -H 'Content-type:application/json' -d ' { "id":"1", "name_s": "Joe Smith", "phone_s": 876876687, "orgs": [

Re: Indexing multi level Nested JSON

2018-03-22 Thread Zheng Lin Edwin Yeo
I'm trying to index the following JSON with 2 child level using the following curl command: .\curl ' http://localhost:8983/solr/collection1/update/json/docs?split=/|/orgs' -H 'Content-type:application/json' -d ' { "id":"1", "name_s": "JoeSmith", "phone_s": 876876687, "orgs": [ {

Re: querying vs. highlighting: complete freedom?

2018-03-22 Thread Erick Erickson
Basically you need to use a copyField, but in several variants: If you use the field _exclusively_ for highlighting then store the raw content there and have the field use whatever analyzer you want. You do _not_ need to have indexed="true" set for the field if you're highlighting on the fly. So

RE: Solr or Elasticsearch

2018-03-22 Thread Liu, Daphne
I used Solr + Cassandra for Document search. Solr works very well with document indexing. For big data visualization, I use Elasticsearch + Grafana. As for today, Grafana is not supporting Solr. Elasticseach is very friendly and easy to use on multi-dimensional Group by and its real-time query

Re: Solr or Elasticsearch

2018-03-22 Thread Vincenzo D'Amore
Hi Steve, this seems to be more recent https://sematext.com/blog/solr-vs-elasticsearch-differences/ On Thu, Mar 22, 2018 at 2:33 PM, Charlie Hull wrote: > On 22/03/2018 13:13, Steven White wrote: > >> Hi everyone, >> >> There are some good write ups on the internet

Re: Solr or Elasticsearch

2018-03-22 Thread Charlie Hull
On 22/03/2018 13:13, Steven White wrote: Hi everyone, There are some good write ups on the internet comparing the two and the one thing that keeps coming up about Elasticsearch being superior to Solr is it's analytic capability. However, I cannot find what those analytic capabilities are and

RE: Boosting Fields Based On The Query Provided

2018-03-22 Thread Mukhopadhyay, Aratrika
Thanks for your reply Shawn. The query elevation worked for us. I have another question though. Right now I have ways to handle specific queries in the elevate.xml. The concern I am having is that I may have hundreds of queries that need to return different pages first. Is the only way to do

Solr or Elasticsearch

2018-03-22 Thread Steven White
Hi everyone, There are some good write ups on the internet comparing the two and the one thing that keeps coming up about Elasticsearch being superior to Solr is it's analytic capability. However, I cannot find what those analytic capabilities are and why they cannot be done using Solr. Can

querying vs. highlighting: complete freedom?

2018-03-22 Thread Arturas Mazeika
Hi Solr-Users, I've been playing with a german collection of documents, where I tried to search for one word (q=Tag) and highlighted another: (hl.q=Kundigung). Is this a "legal" use case? My key question is how can I tell solr which query analyzer to use for highlighting? Strictly speaking, I