Sorting by custom order

2018-08-31 Thread Salvo Bonanno
Hello I need to sort a results set in a particolar way... the documents looks like this: { "customer_id":28998, "name_txt":["Equal Corp"], "address_txt":["Austin Ring Center"], "municipality_txt":["Austin"], "province_txt":["Austin"], "region_txt":["TX"], "profile_txt"

Re: ZooKeeper issues with AWS

2018-08-31 Thread Erick Erickson
Jack: Yeah, I understood that you were only killing one ZK at a time. I think Walter and Shawn are pointing you in the right direction. On Fri, Aug 31, 2018 at 12:53 PM Shawn Heisey wrote: > > On 8/31/2018 12:14 PM, Jack Schlederer wrote: > > Our working hypothesis is that Solr's JVM is caching

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Scott Prentice
Yup. That does the trick! Here's my command line ..     $ ./bin/post -c core01 -format solr /home/xtech/solrtest/test1b.json I saw that "-format solr" option, but it wasn't clear what it did. It's still not clear to me how that changes the endpoint to allow for updates. But nice to see that it

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Alexandre Rafalovitch
Ok, Try "-format solr" instead of "-url ...". Regards, Alex. On 31 August 2018 at 20:54, Scott Prentice wrote: > Nope. That's not it. It complains about this path not being found .. > > /solr/core01/update/json/json/docs > > So, I changed the -url value to this > "http://localhost:8983/s

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Scott Prentice
Nope. That's not it. It complains about this path not being found ..     /solr/core01/update/json/json/docs So, I changed the -url value to this "http://localhost:8983/solr/core01/update"; .. which was "successful", but created the same odd index structure of "field.set". I'm clearly flailin

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Scott Prentice
Ah .. is this done with the -url parameter? As in .. ./bin/post -url http://localhost:8983/solr/core01/update/json /home/xtech/solrtest/test1.json Will test. Thanks, ...scott On 8/31/18 5:15 PM, Scott Prentice wrote: Hmm. That makes sense .. but where do you provide the endpoint to post? I

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Scott Prentice
Hmm. That makes sense .. but where do you provide the endpoint to post? Is that additional commands within the JSON or a parameter at the command line? Thanks, ...scott On 8/31/18 4:48 PM, Alexandre Rafalovitch wrote: I think you are using different end points there. /update by default vs /u

Re: BUMP: Atomic updates and POST command?

2018-08-31 Thread Alexandre Rafalovitch
I think you are using different end points there. /update by default vs /update/json So i think the post gets treated as generic json parsing. Can you try the same end point? Regards, Alex On Fri, Aug 31, 2018, 7:05 PM Scott Prentice, wrote: > Just bumping this post from a few days ago.

BUMP: Atomic updates and POST command?

2018-08-31 Thread Scott Prentice
Just bumping this post from a few days ago. Is anyone using atomic updates? If so, how are you passing the updates to Solr? I'm seeing a significant difference between the REST API and the post command .. is this to be expected? What's the recommended method for doing the update? Thanks! ...

Solr unknown field 'metatag.description'

2018-08-31 Thread kunhu0...@gmail.com
Team, Need suggestions on solr indexing error unknown field 'metatag.description' We are using Nutch 1.14 and solr 6.6.3 Nutch-site.xml is below protocol-httpclient|urlfilter-regex|index-(basic|more)|query-(basic|site|url|lang)|indexer-solr|nutch-extensionpoints|parse-(html|tika|text|msexcel|

Need to connect solr with solrj from AWS lambda

2018-08-31 Thread nalsrini
Hi, I need to connect solr with solrj from AWS java lambda. I use solr 5.3. I get the client object like this: SolrClient client = new HttpSolrClient(System.getenv(SysEnvConstants.SOLR_HOST)); I neither get an error nor a response when I call these(for example) from the lambda: SolrDocument sorl

Unknown field "cache"

2018-08-31 Thread kunhu0...@gmail.com
Hello Team, Need suggestions on Solr Indexing. We are using Solr-6.6.3 and Nutch 1.14. I see unknown field 'cache' error while indexing the data to Solr so i added below entry in field section of schema.xml forsolr Tried indexing the data again and this time error is unknown field 'date'. How

Re: Multiple solr instances per host vs Multiple cores in same solr instance

2018-08-31 Thread Wei
Hi Erick, I am looking into the rule based replica placement documentation and confused. How to ensure there are no more than one replica for any shard on the same host? There is an example rule shard:*,replica:<2,node:* seem to serve the purpose, but I am not sure if 'node' refer to solr ins

Re: ZooKeeper issues with AWS

2018-08-31 Thread Shawn Heisey
On 8/31/2018 12:14 PM, Jack Schlederer wrote: Our working hypothesis is that Solr's JVM is caching the IP addresses for the ZK hosts' DNS names when it starts up, and doesn't re-query DNS for some reason when it finds that that IP address is no longer reachable (i.e., when a ZooKeeper node die

Re: ZooKeeper issues with AWS

2018-08-31 Thread Walter Underwood
I would not run Zookeeper in a container. That seems like a very bad idea. Each Zookeeper node has an identity. They are not interchangeable. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Aug 31, 2018, at 11:14 AM, Jack Schlederer > wrote: > > Th

Re: ZooKeeper issues with AWS

2018-08-31 Thread Jack Schlederer
Thanks Erick. After some more testing, I'd like to correct the failure case we're seeing. It's not when 2 ZK nodes are killed that we have trouble recovering, but rather when all 3 ZK nodes that came up when the cluster was initially started get killed at some point. Even if it's one at a time, and

MLT in Cloud Mode - Not Returning Fields?

2018-08-31 Thread Doug Turnbull
Hello, We're working on a Solr More Like This project (Solr 6.6.2), using the More Like This searchComponent. What we note is in standalone Solr, when we request MLT using the search component, we get every more like this document fully formed with complete fields in the moreLikeThis section. In

Re: Solrcloud collection file location on zookeeper

2018-08-31 Thread Jan Høydahl
Once Solr 7.5 is released you will have a new "Cloud -> ZK Status" tab that will among other things show the data path on each ZK server. Until then, log in to the ZK server, locate zoo.cfg and check. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 31. aug. 2018 kl.

Re: Split on whitespace parameter doubt

2018-08-31 Thread David Argüello Sánchez
Thank you for your response Emir! Your message was really useful to have a better understanding on the parameter. I understand your point and it makes sense. I think that we are in the same point. The weird thing is that the parameter doesn’t create field centric queries all the time (or at l

Re: Solr7 embeded req: Bad content type error

2018-08-31 Thread Andrea Gazzarini
Hi Alfonso, thank you, too: I've learned another stuff ;) Andrea On 29/08/18 14:31, Alfonso Noriega wrote: Thanks for your time and help Andrea, I guess we should try to use the Json API provided by Solr and figure out a way to do

Re: ZooKeeper issues with AWS

2018-08-31 Thread Erick Erickson
Jack: Is it possible to reproduce "manually"? By that I mean without the chaos bit by the following: - Start 3 ZK nodes - Create a multi-node, multi-shard Solr collection. - Sequentially stop and start the ZK nodes, waiting for the ZK quorum to recover between restarts. - Solr does not reconnect

Re: Bugs on documentation

2018-08-31 Thread Erick Erickson
Atom is a free editor that lets you see what the AsciiDoc looks like via the "preview" pane. IntelliJ also has an AsciiDoc preview plugin that will help as well. Best, Erick On Fri, Aug 31, 2018 at 6:23 AM Mikhail Khludnev wrote: > > Hi. > Right. You can create JIRA ticket and attach patch for >

Re: Solrcloud collection file location on zookeeper

2018-08-31 Thread Erick Erickson
You should have a "zoo.cfg" file in the conf directory (a sibling to the bin directory where you run ZK). Inside there the dataDir property specifies where ZooKeeper stores data. NOTE: the default is somewhere under /tmp and should NOT be used for production since the contents of /tmp can disappear

Re: Solrcloud collection file location on zookeeper

2018-08-31 Thread Shawn Heisey
On 8/31/2018 8:40 AM, Sushant Vengurlekar wrote: Any idea where this database is stored on the file system. I don’t want to read it but just know where it resides. If you followed recommendations, your ZooKeeper ensemble is NOT using the ZK server that's embedded inside Solr.  In that case I

Re: Solrcloud collection file location on zookeeper

2018-08-31 Thread Sushant Vengurlekar
Any idea where this database is stored on the file system. I don’t want to read it but just know where it resides. Thanks On Fri, Aug 31, 2018 at 7:15 AM Shawn Heisey wrote: > On 8/30/2018 10:15 PM, Sushant Vengurlekar wrote: > > Where does zookeeper store the collection info on local filesyst

Re: change DocExpirationUpdateProcessorFactory deleteByQuery NOW parameter time zone

2018-08-31 Thread Shawn Heisey
On 8/30/2018 7:26 PM, Derek Poh wrote: Can the timezone of the NOW parameter in the |deleteByQuery| of the DocExpirationUpdateProcessorFactory be change to my timezone? I am in SG and using solr 6.5.1. I do not know what SG is. The timezone cannot be changed.  Solr *always* handles dates in

Re: Solrcloud collection file location on zookeeper

2018-08-31 Thread Shawn Heisey
On 8/30/2018 10:15 PM, Sushant Vengurlekar wrote: Where does zookeeper store the collection info on local filesystem on zookeeper? ZooKeeper doesn't store info in a way that you can find on the filesystem.  ZK data is stored in a file structure that's basically a database.   The way I underst

Re: if we can do that Inverted index and forward information stored on different disks by solr?

2018-08-31 Thread Shawn Heisey
On 8/31/2018 3:19 AM, shreck wrote: thanks , Elasticsearch also dosen't support the feature? in some situation,i think we can improve search performance through this way. I cannot see how it would improve performance. The best way to improve search performance is to add memory to the sys

Re: Bugs on documentation

2018-08-31 Thread Mikhail Khludnev
Hi. Right. You can create JIRA ticket and attach patch for solrcloud-autoscaling-overview.adoc. Here's the example of the similar contribution https://issues.apache.org/jira/browse/SOLR-11834 On Fri, Aug 31, 2018 at 2:25 PM waizou mailing wrote: > Hi Guies, > > I'm I on the right channel to repo

Bugs on documentation

2018-08-31 Thread waizou mailing
Hi Guies, I'm I on the right channel to report possible bugs in the Solr Ref Guide (7.3 and 7.4 page https://lucene.apache.org/solr/guide/7_3/solrcloud-autoscaling-overview.html) ?

Re: Split on whitespace parameter doubt

2018-08-31 Thread Jan Høydahl
> I am not sure why field centric field is not used all the time or at least > why there is no parameter to force it. Yea, we should have a parameter to force a field/term centric mode if possible. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com

Re: [EXTERNAL] - Re: join works with a core, doesn't work with a collection

2018-08-31 Thread Jan Høydahl
Hi, You can have multiple nodes as long as you make sure that your collection has only one shard, then the joins will work. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 30. aug. 2018 kl. 19:51 skrev Steve Pruitt : > > Shawn, > > You are correct. I created anot

Re: if we can do that Inverted index and forward information stored on different disks by solr?

2018-08-31 Thread shreck
thanks , Elasticsearch also dosen't support the feature? in some situation,i think we can improve search performance through this way. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: if we can do that Inverted index and forward information stored on different disks by solr?

2018-08-31 Thread Mikhail Khludnev
Nope. You can try to hack DirectoryFactory to make it layout files based on extension. On Fri, Aug 31, 2018 at 11:58 AM shreck wrote: > > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > -- Sincerely yours Mikhail Khludnev

if we can do that Inverted index and forward information stored on different disks by solr?

2018-08-31 Thread shreck
-- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

if we can do that Inverted index and forward information stored on different disks by solr?

2018-08-31 Thread shreck
-- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html