Re: Limiting the number of queries/updates to Solr

2017-08-02 Thread Hrishikesh Gadre
At one point I was working on SOLR-7344 (but it fell off the radar due to various reasons). Specifically I built a servlet request filter which implements a customizable queuing mechanism using asynchronous servlet API (Servlet 3 spec). This way

Re: Limiting the number of queries/updates to Solr

2017-08-02 Thread Walter Underwood
> On Aug 2, 2017, at 8:33 PM, Shawn Heisey wrote: > > IMHO, intentionally causing connections to fail when a limit is exceeded > would not be a very good idea. When the rate gets too high, the first > thing that happens is all the requests slow down. The slowdown could be

Re: Limiting the number of queries/updates to Solr

2017-08-02 Thread Shawn Heisey
On 8/2/2017 8:41 PM, S G wrote: > Problem is that peak load estimates are just estimates. > It would be nice to enforce them from Solr side such that if a rate higher > than that is seen at any core, the core will automatically begin to reject > the requests. > Such a feature would contribute to

Limiting the number of queries/updates to Solr

2017-08-02 Thread S G
Hi, My team provides Solr clusters to several other teams in my company. We get peak-requirements for query-rate and update-rate from our customers and load-test the cluster based on the same. This helps us arrive at a cluster suitable for a given peak load. Problem is that peak load estimates

Re: Arabic words search in solr

2017-08-02 Thread Tim Casey
There should be a way to use a phrasal query for the specific names. On Wed, Aug 2, 2017 at 2:15 PM, Phil Scadden wrote: > Hopefully changing to default AND solves your problem. If so, I would be > quite interested in what your index config looks like in the end. I also >

RE: Arabic words search in solr

2017-08-02 Thread Phil Scadden
Hopefully changing to default AND solves your problem. If so, I would be quite interested in what your index config looks like in the end. I also have upcoming need to index Arabic words. -Original Message- From: mohanmca01 [mailto:mohanmc...@gmail.com] Sent: Thursday, 3 August 2017

Re: generate field name in query

2017-08-02 Thread Rick Leir
Peter The common setup is to use copyfield from all your fields into a 'grab bag' containing everything, and then to search on it alone. Cheers -- Rick On August 2, 2017 7:31:10 AM EDT, Peter Kirk wrote: >Hi - is it possible to create a query (or fq) which generates the

default values in multiValue field

2017-08-02 Thread Steve Pruitt
Are default values supported for fields defined as multivalued text? I can't get it to work. Scouring the documentation, I found nothing indicating the two attributes are mutually exclusive. I found a couple of online examples indicating the two attributes can be used together. I have this

RE: Arabic words search in solr

2017-08-02 Thread Allison, Timothy B.
+1 I was hoping to use this as a case for arguing for turning off an overly aggressive stemmer, but I checked on your 10 docs and query, and David is right, of course -- if you change the default operator to AND, you only get the one document back that you had intended to. I can still use

Re: Replication Question

2017-08-02 Thread Michael B. Klein
And the one that isn't getting the updates is the one marked in the cloud diagram as the leader. /me bangs head on desk On Wed, Aug 2, 2017 at 10:31 AM, Michael B. Klein wrote: > Another observation: After bringing the cluster back up just now, the > "1-in-3 nodes don't get

Re: Solr 4.10.4 export handler NPE

2017-08-02 Thread Erick Erickson
That the JIRA says 5.5 just means that's the version the submitter was using when the NPE was encountered. No workarounds that I know of, but that code has changed drastically since the 4.10 days so I really have no clue. Any chance of trying it on a 6.6 release? Best, Erick On Tue, Aug 1, 2017

Re: Replication Question

2017-08-02 Thread Michael B. Klein
Another observation: After bringing the cluster back up just now, the "1-in-3 nodes don't get the updates" issue persists, even with the cloud diagram showing 3 nodes, all green. On Wed, Aug 2, 2017 at 9:56 AM, Michael B. Klein wrote: > Thanks for your responses, Shawn and

Re: Custom Sort option to apply at SOLR index

2017-08-02 Thread Erick Erickson
I guess I don't see the problem, just store it as a string and sort on the field. # sorts before numbers which sort before characters. Or I'm reading the ASCII chart wrong. Best, Erick On Wed, Aug 2, 2017 at 6:55 AM, padmanabhan wrote: > Hello Solr

Re: Move index directory to another partition

2017-08-02 Thread Erick Erickson
Shawn: Not entirely sure about AWS intricacies, but getting a new replica to use a particular index directory in the general case is just specifying dataDir=some_directory on the ADDREPLICA command. The index just needs an HTTP connection (uses the old replication process) so nothing huge there.

migrating XML queryparser from solr 4.7 to 6.6

2017-08-02 Thread Kempelen , Ákos
Hello everybody, We are using the XML queryparser in our application with Solr 4.7, but now we need to migrate to version 6.6. Unfortunately things have changed a bit.. The Filter class is missing, but we are using the FilteredQuery class massively to create complex filters. So we have to find a

Re: Replication Question

2017-08-02 Thread Michael B. Klein
Thanks for your responses, Shawn and Erick. Some clarification questions, but first a description of my (non-standard) use case: My Zookeeper/SolrCloud cluster is running on Amazon AWS. Things are working well so far on the production cluster (knock wood); its the staging cluster that's giving

RE: Solr Index issue on string type while querying

2017-08-02 Thread padmanabhan
Thank you Matt for the reply. my apologize on the clarity about the problem statement. The problem was with the source attribute value defined at the source system. Source system with the heightSquareTube_string_mv: 90 - 100 mm Solr index converts the xml or html code to its symbol

Custom Sort option to apply at SOLR index

2017-08-02 Thread padmanabhan
Hello Solr Geeks, Am newbie to SOLR. I have a requirement as given below, Could any one please provide some insights on how to go about on this. "Ascending by name" (#, 0 - 9, A - Z) "Descending by name" (Z - A, 9 - 0, #) Sample name value can be ABCD5678 1234ABCD #2345ABCD #1234ABCD

Re: Arabic words search in solr

2017-08-02 Thread David Hastings
perhaps change your default operator to AND instead of OR if thats what you are expecting for a result On Wed, Aug 2, 2017 at 8:57 AM, mohanmca01 wrote: > Hi Phil Scadden, > > Thank you for your reply, > > we tried your suggested solution by removing hyphen while

RE: Arabic words search in solr

2017-08-02 Thread mohanmca01
Hi Phil Scadden, Thank you for your reply, we tried your suggested solution by removing hyphen while indexing, but it was getting wrong results. i was searching for "شرطة ازكي" and it was showing me the result that am looking for, plus irrelevant result which either have the first or second

generate field name in query

2017-08-02 Thread Peter Kirk
Hi - is it possible to create a query (or fq) which generates the field to search on, based on whether or not the document has that field? Eg. Search for documents with prices in the range 100 - 200, using either the field "price_owner_float" or "price_customer_float" (if a document has a field

Re: Problems retrieving large documents

2017-08-02 Thread Aman Tandon
Did you find any error in Solr logs? On Sat, Jul 29, 2017, 23:13 Aman Tandon wrote: > Hello, > > Kindly check the Solr logs when you are hitting the query. Attach the same > here, that I could gave more insight. > > For me it looks like the OOM, but check the Solr logs

Re: edismax, pf2 and use of both AND and OR parameter

2017-08-02 Thread Aman Tandon
Hi, Ideally it should but from the debug query it seems like it is not respecting Boolean clauses. Anyone else could help here? Is this the ideal behavior? On Jul 31, 2017 5:47 PM, "Niraj Aswani" wrote: > Hi Aman, > > Thank you very much your reply. > > Let me elaborate

RE: Solr Input and Output format

2017-08-02 Thread Ranganath B N
Hi, I am not asking about the file formats. Rather, It is about SolrInputFormat and SolrOutputFormat interfaces which deal with getsplit(), getRecordReader() and getRecordWriter() methods. Are there any Implementations for these interfaces? Thanks, Ranganath B. N. From: