Re: node sort order and policy

2018-09-04 Thread Shalin Shekhar Mangar
The "sortedNodes" shows the nodes in the system from the most loaded to least loaded order. All other things being equal, a node having the least free disk space will come first and the last node will be the one with the most available disk space. On Wed, Sep 5, 2018 at 3:01 AM Kudrettin Güleryüz

Re: Expected mime type application/octet-stream but got text/html

2018-09-04 Thread Shawn Heisey
On 9/4/2018 3:22 PM, nalsrini wrote: Hi,I use Solr 5.3 and I don't have any collection. When I execute the following code, I got this error:Error from server at http://:/solr-master: Expected mime type application/octet-stream but got text/html.SolrClient client = new HttpSolrClient("http://:/sol

node sort order and policy

2018-09-04 Thread Kudrettin Güleryüz
Given exhibit A which shows the current sort order on a 7.3.1 cloud installation, why would the sort order be from less freedisk to more freedisk? Shouldn't it be the reverse since the number of cores is the same for all nodes? preferences and policies are listed in exhibit B. Thank you, Exhibit

Expected mime type application/octet-stream but got text/html

2018-09-04 Thread nalsrini
Hi,I use Solr 5.3 and I don't have any collection. When I execute the following code, I got this error:Error from server at http://:/solr-master: Expected mime type application/octet-stream but got text/html.SolrClient client = new HttpSolrClient("http://:/solr-master";); String sorld = client.getB

Re: Need to connect solr with solrj from AWS lambda

2018-09-04 Thread Srinu Lella
How to unsubscribe from this list? On Fri 31 Aug, 2018, 11:08 PM nalsrini, wrote: > 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 nei

Re: URI is too long

2018-09-04 Thread vlspavan
Hi Salman, I have the same issue that URI is too long. Did you try implementing the post method ? If so, can you please post the code from your end on post requests. This will help greatly. Thank you Pavan -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Need to connect solr with solrj from AWS lambda

2018-09-04 Thread nalsrini
Hi Mikhail, My Operations team member said, he already opened the firewall rule. Thanks Srini -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Is it possible to escape some texts from Solr query?

2018-09-04 Thread Erick Erickson
Alexandre's response is probably a better solution, assuming that the field in question isn't complex, for instance: http://localhost:8983/solr/techproducts/query?q={!term f=id}AND Be aware that this requires that the value for the field (AND in this case) be exactly as it appears in the index as

Re: Is it possible to escape some texts from Solr query?

2018-09-04 Thread Alexandre Rafalovitch
As Erick said, you need to be looking into Query Parsers. There are many, depending on what search you are actually allowing your users to do. You probably know lucene/default, dismax and edismax, but there are many more: http://lucene.apache.org/solr/guide/7_4/other-parsers.html For example, you

Re: Is it possible to escape some texts from Solr query?

2018-09-04 Thread Erick Erickson
This is a query _parsing_ issue, way before a tokenizer ever gets to it. The problem of course is that AND is an operator in the query language, so your problem is how to distinguish it from the value of a field. You can always quote the input for id, as in id:"AND" which you could do for everythi

Re: Streaming timeseries() and buckets with no docs

2018-09-04 Thread Joel Bernstein
Which version are you using? I remember addressing this issue, but it may have been in Alfresco's version of Solr and never got ported back. I do agree that in a time series a null value is not what people want. It is a very small change to populate with zeros if it has not already been done in t

Is it possible to escape some texts from Solr query?

2018-09-04 Thread girish.vignesh
One of the ID attribute which we are using to query is AND so our looks like http://localhost:8983/solr//select?fq=id:AND&wt=json This throws below mentioned exception error: { metadata: [ "error-class", "org.apache.solr.common.SolrException", "root-error-class", "org.apache.solr.parser.ParseExc

error render solr data spatial from geoserver

2018-09-04 Thread tkg_cangkul
Hi i wanna try to rendering solr data spatial from geoserver layer. when i try to render it from single shard solr collection, it works normally. but when i try to render it from multi shards solr collection, i've found an error message below on my geoserver. Pls help

Solr custom score performance

2018-09-04 Thread Dominik Safaric
Hi there! I have the following use case I'd like to implement in Solr and hence are seeking for information onto the internals of Solr and the performance of such an approach. I would like to score documents matched by a query using a custom scoring function. Generally, up to my knowledge, there

Re: solr how to show different documents for different users in a better way

2018-09-04 Thread Jan Høydahl
Hi, If you have more than a few thousand documents you'll want to let Solr do the security filtering. It is just like any other filter, which removes documents the user has no right to see. In order to do this you'll need to add a few fields to your schema and modify your indexer application so