solr shutdown error

2016-07-01 Thread Kent Mu
hi all, solr version: 4.9.0 I create and get a HttpSolrServer connection by singleton pattern. I find the method of "shutdown" in solrj API, so I decided to use "shutdown" to release resources, but I got the error as below, It is due to singleton pattern? *Error executing query*

Re: Automatic Language Identification

2016-07-01 Thread William Bell
We should add a simple filter in Solr for this. The current way requires indexing. https://github.com/kkrugler/yalder is good, it would be a great filter: if NOT english, fail the whole text. On Fri, Jul 1, 2016 at 6:33 AM, Allison, Timothy B. wrote: > +1 to langdetect > >

Re: Question about Indexing Updated Documents

2016-07-01 Thread Chris Hostetter
If you are already using DIH, then you can use a deltaQuery to find "updated" documents and index only them. https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler Some people just parameterize their main DIH query and use request

Re: Searching inside parent AND children, returning only parents.

2016-07-01 Thread Mikhail Khludnev
Yep, query syntax is a little bit challenging. Here I'm showing query nesting to answer your question and also a better syntax for boolean queries: q={!parent which="parentDoc:true" v=$childq} (+parentDoc:true +) =+parentDoc:false + 30 июня 2016 г. 10:11 пользователь "Marre"

Question about Indexing Updated Documents

2016-07-01 Thread Jamal, Sarfaraz
Hi Guys, I have a data-import handler set up that indexes all of the documents from a few small tables. What is the best way to update the index when a single one of those documents change. Is it possible to use SQL or must I post json or xml to solr? Thanks you, Sas

Re: SolrCloud Node fails that was hosting replicas of a collection

2016-07-01 Thread Erick Erickson
Please do _not_ use the admin UI core creating screen when dealing with SolrCloud. It can work, but you have to get everything exactly right. Instead, you should be using the ADDREPLICA command from the Collections API, see: https://cwiki.apache.org/confluence/display/solr/Collections+API

SolrCloud Node fails that was hosting replicas of a collection

2016-07-01 Thread Deeksha Sharma
Currently I am building a SolrCloud cluster with 3 Zookeepers (ensemble) and 4 solr instances. Cluster is hosting 4 collections and their replicas. When one Solr node say Solr1 goes down (hosting 2 replicas of collection1 and collection2), I add a new node to the cluster and that node in Admin

Re: Writing Custom handlers for solr in java

2016-07-01 Thread Erick Erickson
What _kind_ of handler? A search component? An update handler? A query parser? Basically I'd do a google search, there are a lot of examples out there. Try to pick one that's relatively recent. On Fri, Jul 1, 2016 at 3:40 AM, star jlong wrote: > Hi, > > I'm a newbie

Re: 500 error querying solrcloud with >1 shard

2016-07-01 Thread Erick Erickson
Hmmm, don't see anything outstanding. What version of Solr? Historically there have been some bugs when a shard doesn't happen to host any docs, which sometimes occurs when you are testing and just add a few docs to the collection, is that a possibility? Best, Erick On Thu, Jun 30, 2016 at 10:40

Re: Matching all terms in a multiValued field

2016-07-01 Thread Erick Erickson
If the permissions are hierarchical, i.e. anyone who can see paid_source and see confidential you could just index the minimum-required clearance with the doc (think numeric codes here) and form your fq as auth:[max_level_for_user TO *]. I admit I've rarely seen security models that are that

Re: Solr 5.2.0 - support for multiValued field sorting?

2016-07-01 Thread Erick Erickson
First answer "what does sorting on a field with more than one value mean?" Say I have "aardvark" and "zebra". Where should the doc go, at the beginning or end of the list? For numerics at least you can do this, see: https://lucidworks.com/blog/2015/09/10/minmax-on-multivalued-field/ in Solr 5.3+.

Re: Date range warming.

2016-07-01 Thread Erick Erickson
Glad you figured it out. BTW, your query can be a little simpler since you can mix and match inclusive/exclusive end points as: date_published:([NOW/DAY-6MONTH+1DAY TO NOW/DAY+1DAY}) Note curly brace rather than square bracket at the end. As to whether the filter cache is actually used, if you

Re: solr sort

2016-07-01 Thread Erick Erickson
Please review: http://wiki.apache.org/solr/UsingMailingLists There is precisely no information here that would allow us to diagnose the root of your problem. The only general advice would be use DocValues. Erick On Thu, Jun 30, 2016 at 11:09 PM, 闲鹤/mamao wrote: >

solr sort

2016-07-01 Thread ????/mamao
data:1T Solr Sort occurs the memory overflow query is normal

Re: SolrCloud not commit documents automatically

2016-07-01 Thread Shawn Heisey
On 7/1/2016 10:01 AM, Chet Rebman wrote: > > > ${solr.autoCommit.maxTime:15000} > false > > > ${solr.autoSoftCommit.maxTime:-1} > > > > My understanding is this should performa a hard commit every 15 seconds. Yes, that is exactly what it will do -- but none of

SolrCloud not commit documents automatically

2016-07-01 Thread Chet Rebman
Hello all, I am new to SolrCloud. I have read that solrCloud prefers to commit automatically, rather then recieve commit commands. However solrCloud never commits my documents. I am running SolrCloud 6.1 with three solr servers and 3 zookeeper instances. I am using CloudSolrClient with all

Re: Date range warming.

2016-07-01 Thread Callum Lamb
Okay I figured it out. Answer here if anyone ever stumbled across this in future. With debugQuery on you can see filter_queries actually get processed into what's in the parsed_filter_queries and it's those that get cached. In this case solr converts them to unix timestamps TO unix_timestamp and

RE: Automatic Language Identification

2016-07-01 Thread Allison, Timothy B.
+1 to langdetect In Tika 2.0, we're going to remove our own language detection code and allow users to select Optimaize (fork of langdetect), MIT Lincoln Lab’s Text.jl library or Yalder (https://github.com/kkrugler/yalder). The first two are now available in Tika 1.13. -Original

Solr 5.2.0 - support for multiValued field sorting?

2016-07-01 Thread Harsh Darji
Hi, We are using solr 5.2.0. We have requirement to sort dynamic fields which contains multivalued = true.Can any one guide me how we can achieve it?If newer version of solr supports it we are ok to upgrade solr. Regards,Harsh

questions for the method "shutdown" of CloudSolrServer

2016-07-01 Thread 穆 俊峰
hi all, I create a CloudSolrServer Connection by singleton pattern like this public synchronized static CloudSolrServer getSolrCloudReadServer() { if (reviewSolrCloudServer == null) { ModifiableSolrParams params = new ModifiableSolrParams();

solr shutdown error

2016-07-01 Thread 穆 俊峰
hi all, solr version: 4.9.0 I create and get a HttpSolrServer connection by singleton pattern. I find the method of "shutdown" in solrj API, so I decided to use "shutdown" to release resources, but I got the error as below, It is due to singleton pattern? Error executing query

Re: Date range warming.

2016-07-01 Thread Callum Lamb
Woops, Just realised it's meant to be: date_published:([NOW/DAY-6MONTH+1DAY TO NOW/DAY+1DAY-*1MILLISECOND*]) instead. On Fri, Jul 1, 2016 at 11:52 AM, Callum Lamb wrote: > We want to warm some FQ's. The main ones we want to do being date presets > like "last 6 months", "last

Date range warming.

2016-07-01 Thread Callum Lamb
We want to warm some FQ's. The main ones we want to do being date presets like "last 6 months", "last year" .etc The queries for the last 6 months get generated to look like this from site (it's really 6 months -1 day): *date_published:([2016-01-02T00:00:00.000Z TO 2016-07-01T23:59:59.999Z])*

Matching all terms in a multiValued field

2016-07-01 Thread Ellis, Tom (Financial Markets IT)
Hi There, I'm trying to create search component for some document level security. A user will have a number of tags assigned to them, and these will be passed to the search component which will add a filter to whatever the user's original query was. Documents will be written with some or all

Writing Custom handlers for solr in java

2016-07-01 Thread star jlong
Hi, I'm a newbie on this fascinating technology called solr. Well, I have been doing some configurations and run with solr. Now I want to custom handlers for solr with java. Please can somebody share with an example of a custom handler for solr 5.2.0, so that with this example will be able to

答复: solrcloud goes down

2016-07-01 Thread 穆 俊峰
FYI 发件人: 穆 俊峰 发送时间: 2016年7月1日 8:45 收件人: solr-user@lucene.apache.org 主题: solrcloud goes down Dear Mr. Experts! I came across a problem when use solrcloud, it goes down. The version is 4.9.1. we got the java core log, it looks like the http

solrcloud goes down

2016-07-01 Thread 穆 俊峰
Dear Mr. Experts! I came across a problem when use solrcloud, it goes down. The version is 4.9.1. we got the java core log, it looks like the http connection pool is exhausted and most threads are waiting to get a free connection. I have increased http connection defaults for the SolrJ

Re: Error when searching with special characters

2016-07-01 Thread Zheng Lin Edwin Yeo
Hi Ere, Yes, this works. Thanks for your reply. Regards, Edwin On 1 July 2016 at 15:00, Ere Maijala wrote: > You need to make sure you encode things properly in the URL. You can't > just place an ampersand there because it's the parameter delimiter in a > URL. If

Re: error rendering solr spatial in geoserver

2016-07-01 Thread David Smiley
Sorry, good point Era; I forgot about that. I filed an issue: https://issues.apache.org/jira/browse/SOLR-9270 When I work on that I'll add an upgrading note to the 6x section. ~ David On Wed, Jun 29, 2016 at 6:31 AM Ere Maijala wrote: > It would have been _really_

Re: Error when searching with special characters

2016-07-01 Thread Ere Maijala
You need to make sure you encode things properly in the URL. You can't just place an ampersand there because it's the parameter delimiter in a URL. If you're unsure, use e.g. http://meyerweb.com/eric/tools/dencoder/ to encode your search terms. You'll see that "r" will become %22r%26d%22.