ngroup for MLT results

2016-05-20 Thread Zheng Lin Edwin Yeo
Hi, Would like to check, is there a way to do ngrouping for MLT queries? I tried the following query with the MoreLikeThisHandler, but I could not get any ngroup results. http://localhost:8983/solr/collection1/mlt?q=testing&json.facet={ngroups:%22unique(signature)%22}&start=0 I can only get the

Re: Sorting for MLT results

2016-05-20 Thread Zheng Lin Edwin Yeo
Thanks for your reply. But it didn't work when I execute this query. http://localhost:8983/solr/collection1/mlt?q=testing&sort=creation_date desc,id asc&rows=10 This is my configuration for the handler. explicit 10 json true edismax id, score content subject content 2 5 3 25 10 false details

Re: Commit (hard) at shutdown?

2016-05-20 Thread Shawn Heisey
On 5/20/2016 2:51 PM, Jon Drews wrote: > I would be interested in an answer to this question. > > From my research it looks like it will do a hard commit if cleanly shut > down. However if you "kill -9" it you'll loose data (obviously). Perhaps > production isn't cleanly shutting down solr? > https

Re: Get documents having a boolean field:false or not having the field at all

2016-05-20 Thread Erick Erickson
I think you're pretty on-track. My suggestion though would be to move this to a filter query. This still leaves you with the problem of having to remember to change the query logic later, but at least makes this inexpensive after the first go. And you probably want something like: fq=is_deleted_b_

Re: Solr join between documents

2016-05-20 Thread Erick Erickson
Gosh, I'm not even sure how to start to form such a query. Let's see, you have StreetB in some city identified by postal code P. Is what you're wanting "return me all pairs of documents within that postal code that have all the terms matching and the polygons enclosing those streets plus some dis

Re: Creating dynamic field, but strip the type indicator postfix from the name

2016-05-20 Thread Erick Erickson
Why is this important? I'm failing to see how this helps in "making the queries simpler to form". What's the difference between making a query q=field:value and q=field_s:value? If it's a display issue, it seems like the display app could simply strip anything after the terminal underscore from th

Re: solrconfig.xml location for cloud setup not working (works on single node)

2016-05-20 Thread Erick Erickson
I think you're missing the importance of Zookeeper here. You need to upload the config to Zookeeper (as of Solr 5.5 you can do this with bin/solr zk --upload, before that you have to use zkcli)... Anyway, the pattern is: 1> create your config directory 2> upload it to Zookeeper. 3> create your col

Re: Requesting to be added to ContributorsGroup

2016-05-20 Thread Steve Rowe
Hi Sheece, I have CC’d your address for this email, but ordinarily all discussion goes only to the mailing list, so you have to either subscribe to this mailing list - see - or follow the discussion on a service like Nabble. I added

Re: Requesting to be added to ContributorsGroup

2016-05-20 Thread Syed Gardezi
Hello, There are couple of things that need to be updated on the wiki page. I would like to get it done. Can you kindly update. Cheers, Sheece From: Syed Gardezi Sent: Wednesday, 4 May 2016 12:03:01 AM To: solr-user@lucene.apache.org Subject: Requesti

Re: How to stop searches to solr while full data import is going in SOLR

2016-05-20 Thread Erick Erickson
There really isn't any good way to do this built in that I know of. If your "clusters" are separate Solr collections (SolrCloud), you can use collection aliasing to point queries at one or the other atomically. This presumes you have some control over when DIH runs however. The idea is that you h

solrconfig.xml location for cloud setup not working (works on single node)

2016-05-20 Thread Justin Edmands
I have configured a single node and configured a proper datahandler. I need to move it to a clustered setup. Seems like I cannot, for the life of me, get the datahandler to work with the cloud setup. ls /opt/solr/solr-6.0.0/example/cloud/node1/solr/activityDigest_shard1_replica1/conf/ curre

What kind of field function !boost can be applied to?

2016-05-20 Thread vitaly bulgakov
Let's say I want to boost location. Can I apply boost function to the field of this type: If yes, could you give

Re: Commit (hard) at shutdown?

2016-05-20 Thread Jon Drews
I would be interested in an answer to this question. >From my research it looks like it will do a hard commit if cleanly shut down. However if you "kill -9" it you'll loose data (obviously). Perhaps production isn't cleanly shutting down solr? https://dzone.com/articles/understanding-solr-soft Jo

Dynamically specifying log directory location on start of Solr 6 (on CentOS 7)

2016-05-20 Thread Allan Kamau
I have several Solr 6 instances on one computer each listening on a distinct port. I would like to have the logging of each of these instances being written to distinct directories under a common parent directory name. Each of these instances is a copy of the "solr-6.0.0" installation without the

Re: Import html data in mysql and map schemas using only SolrCELL+TIKA+DIH [scottchu]

2016-05-20 Thread Scott Chu
For this project, I intend to use Solr 5.5 or Solr 6. I know how to modify config to go back to use ClassicIndex, ie. manual schema.xml. Scott Chu,scott@udngroup.com 2016/5/21 (週六) - Original Message - From: Siddhartha Singh Sandhu To: solr-user ; scott.chu CC: Date: 2016/5/21 (週

Re: Import html data in mysql and map schemas using only Solr CELL+TIKA+DIH [scottchu]

2016-05-20 Thread Siddhartha Singh Sandhu
You will have to configure your schema.xml in Solr. What version are you using? On Fri, May 20, 2016 at 2:17 AM, scott.chu wrote: > > I have a mysql table with over 300M blog articles. The records are in html > format. Is it possible to import these records using only Solr > CELL+TIKA+DIH to so

Re: Sorting on child document field.

2016-05-20 Thread Mikhail Khludnev
Hello, Check this http://blog-archive.griddynamics.com/2015/08/scoring-join-party-in-solr-53.html Let me know if you need further comments. On Thu, May 19, 2016 at 4:25 PM, Pranaya Behera wrote: > Example would be: > Lets say that I have a product document with regular fields as name, > price,

Re: Switching zk node cause load conf error

2016-05-20 Thread Daniel Collins
Zk holds more than just the Solr config, it holds a copy of the clusterstate, which includes all the sharding, hash ranges, etc as well. You will need to re-create that data on your new ZK instance, i.e. re-create the collection to populate that. You do realize that running a single ZK instance is

Re: Switching zk node cause load conf error

2016-05-20 Thread Scott Chu
Even worse when I startup Solrclouds nodes and point back the original co-op zk nodes. It shows can't load conf for shard 2. It seems pointing to standalone zk node previously already hurt some config data so that the Solrcloud nodes can no long talk to original co-op zk nodes perfectly. Is it

Switching zk node cause load conf error

2016-05-20 Thread Scott Chu
I intially start up 3 zk nodes and upload config 'cugna'. Then I start 2 Solrcloud nodes, create collection with 2 shards, add a lot of docs ok. Later I find 3 zk nodes occupy too many CPU and memory, so I start a standalone zk node and use Solr's zkcli to upload same config 'cugna'. This time I

Re: Error opening new searcher

2016-05-20 Thread Erick Erickson
Actually, it almost certainly _is_ in the regular Solr log file, just which one. The file logging rolls over, which is why you have solr.log, solr.log.1 etc. Likely the message is in one of those unless it happened a long time ago. Those Solr logs are really a window that spans some time period, ho

Config API: delete-requesthandler

2016-05-20 Thread Steven White
Hi folks, The code I'm maintaining, uses Solr config API per https://cwiki.apache.org/confluence/display/solr/Config+API to manage request handlers. My environment has many request handlers, up to 100 in few extreme cases. When that's the case, it means I will issue 100 "delete-requesthandler" f

Re: Error opening new searcher

2016-05-20 Thread Victor D'agostino
Hi Shawn Ok I am going to comit less often then. I have planned to set the console log from INFO to WARN but this kind of log was not in the solr.log regular log file ! Regards Victor Message original *Sujet: *Re: Error opening new searcher *De : *Shawn Heisey *Pour : *sol

Re: Error opening new searcher

2016-05-20 Thread Shawn Heisey
On 5/20/2016 1:46 AM, Victor D'agostino wrote: > What doest this "try again later" log means in solr--console.log : You should really disable console logging entirely. I assume you're running at least version 5.0? > 193899678 WARN (qtp1393423910-18329) [c:db s:shard3 r:core_node3 > x:db_sha

Error opening new searcher

2016-05-20 Thread Victor D'agostino
Hi guys What doest this "try again later" log means in solr--console.log : 193899678 WARN (qtp1393423910-18329) [c:db s:shard3 r:core_node3 x:db_shard3_replica1] o.a.s.u.p.DistributedUpdateProcessor Error sending update to http://10.69.212.22:8983/solr org.apache.solr.client.solrj.impl.Ht

Re: Sorting on child document field.

2016-05-20 Thread Pranaya Behera
Adding lucene user mailing list to it. On Thursday 19 May 2016 06:55 PM, Pranaya Behera wrote: Example would be: Lets say that I have a product document with regular fields as name, price, desc, is_parent. it has child documents such as CA:: fields as a,b,c,rank and another child document as