Re: Edismax mm and efficiency

2014-09-04 Thread Mikhail Khludnev
indeed https://issues.apache.org/jira/browse/LUCENE-4571 my feeling is it gives a significant gain in mm high values. On Fri, Sep 5, 2014 at 3:01 AM, Walter Underwood wrote: > Are there any speed advantages to using “mm”? I can imagine pruning the > set of matching documents early, which could

Append children documents for nested document

2014-09-04 Thread bradhill99
Hi, I have these nested document in solr: curl http://localhost:8983/solr/update/json?commit=true -H 'Content-type:application/json' -d ' [ { "id": "chapter1", "content_type": "chapter", "_childDocuments_": [ { "id": "1-1", "text": "xxx" }, {

Edismax mm and efficiency

2014-09-04 Thread Walter Underwood
Are there any speed advantages to using “mm”? I can imagine pruning the set of matching documents early, which could help, but is that (or something else) done? wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/

Re: How to restore an index from a backup over HTTP

2014-09-04 Thread Greg Solovyev
Thanks Jeff! Thanks, Greg - Original Message - From: "Jeff Wartes" To: solr-user@lucene.apache.org Sent: Wednesday, August 20, 2014 10:36:07 AM Subject: Re: How to restore an index from a backup over HTTP Here’s the repo: https://github.com/whitepages/solrcloud_manager Comments/Issues

Re: solr query gives different numFound upon refreshing

2014-09-04 Thread Erick Erickson
Does this persist if you issue a hard commit? You can do something like http://solr/collection/update?stream.body= On Thu, Sep 4, 2014 at 2:19 PM, shamik wrote: > I've noticed similar behavior with our Solr cloud cluster for a while, it's > random though. We've 2 shards with 3 replicas each.

Re: solr query gives different numFound upon refreshing

2014-09-04 Thread shamik
I've noticed similar behavior with our Solr cloud cluster for a while, it's random though. We've 2 shards with 3 replicas each. At times, I've observed that the same query on refresh will fetch different results (numFound) as well as the content. The only way to mitigate is to refresh the index wit

Re: Query ReRanking question

2014-09-04 Thread Joel Bernstein
If you want the main query to be sorted by date then the top N docs reranked by a query, that should work. Try something like this: q=foo&sort=date+desc&rq={!rerank reRandDocs=1000 reRankQuery=$myquery}&myquery=blah Joel Bernstein Search Engineer at Heliosearch On Thu, Sep 4, 2014 at 4:25 PM,

Re: DELETEREPLICA

2014-09-04 Thread Erick Erickson
Thanks. But since the docs are incorrect as far as current behavior is concerned, I'll change the info on the CWiki to reflect the current state of affairs. I just did a brief test with creating a collection with legacyCloud set to false and no change. Erick On Thu, Sep 4, 2014 at 12:06 PM, Sha

Query ReRanking question

2014-09-04 Thread Ravi Solr
Can the ReRanking API be used to sort within docs retrieved by a date field ? Can somebody help me understand how to write such a query ? Thanks Ravi Kiran Bhaskar

Re: Solr add document over 20 times slower after upgrade from 4.0 to 4.9

2014-09-04 Thread Erick Erickson
Ryan: As it happens, there's a discssion on the dev list about this. If at all possible, could you try a brief experiment? Turn off all the storage, i.e. set stored="false" on all fields. It's a lot to ask, but it'd help the discussion. Or join the discussion at https://issues.apache.org/jira/br

Re: HTTPS for SolrCloud

2014-09-04 Thread Christopher Gross
I was running 4.8.1, and the solr.ssl.checkPeerName flag didn't work, so it was unable to talk to the other nodes to create the collection. I've since upgraded to 4.9.0 and was able to create it, but I had to increment the name. I've had other failures in the past as well, like typos ("mulitValue

Re: Solr API for getting shard's leader/replica status

2014-09-04 Thread Timothy Potter
https://issues.apache.org/jira/browse/SOLR-6481 On Thu, Sep 4, 2014 at 12:32 PM, Timothy Potter wrote: > You need to also verify the node hosting the replica is a live node > (/live_nodes). From SolrJ, you can call: > clusterState.getLiveNodes().contains(node). > > As for API, there is CLUSTERSTA

Re: Solr API for getting shard's leader/replica status

2014-09-04 Thread Timothy Potter
You need to also verify the node hosting the replica is a live node (/live_nodes). From SolrJ, you can call: clusterState.getLiveNodes().contains(node). As for API, there is CLUSTERSTATE provided by the Collection API, but it's not consulting /live_nodes (which is a bug) - I'll open a ticket. On

Re: HTTPS for SolrCloud

2014-09-04 Thread Anshum Gupta
I'm just curious, do you know why the CREATE failed for you? On Thu, Sep 4, 2014 at 12:21 PM, Christopher Gross wrote: > The DELETE from the collections API does get rid of it. Guess I glossed > over on that when I was looking over that section. > > Still -- if the CREATE fails, I don't think

Re: HTTPS for SolrCloud

2014-09-04 Thread Christopher Gross
The DELETE from the collections API does get rid of it. Guess I glossed over on that when I was looking over that section. Still -- if the CREATE fails, I don't think it should create anything that you'd need to go back and DELETE. Thanks Anshum. -- Chris On Thu, Sep 4, 2014 at 3:02 PM, Anshu

Re: DELETEREPLICA

2014-09-04 Thread Shalin Shekhar Mangar
Yeah, this all feedbacks into the ZK as Truth mode that we've been talking about. The documentation is misleading because yes, if a node comes back up, then it will add itself to the cluster state. There are plans to change that behaviour once we've thought through more use-cases and are ready to b

Re: HTTPS for SolrCloud

2014-09-04 Thread Anshum Gupta
Chris, Did you try the Collections API to do whatever you're trying to do? 1. Create collection and 2. Delete collection. https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api6 The collection APIs cleanup things if stuff goes wrong. As I don't know, I'm not sure abou

Re: Is there a way to modify the request handler parameters dynamically?

2014-09-04 Thread Chris Hostetter
: change the highlight search component to use different search component : based on a query parameter What do you mean by "use different search component" ? Differnet how? What is the actual use case / goal you are trying to achieve? https://people.apache.org/~hossman/#xyproblem XY Problem

indexing unique keys

2014-09-04 Thread Mark , N
I have a use-case where we want to store unique keys ( Hashes) which would be used to compare against another set of keys ( Hashes) For example Index set= { h1, h2 , h3 , h4 } comparision set = { h1 , h2 } result set = h1,h2 Would it be an advantage to store "index set" in Solr instead of

Re: HTTPS for SolrCloud

2014-09-04 Thread Christopher Gross
Shawn, How do I remove a collection from the SolrCloud? I tried making "testcollection" and it failed, but now it is listed on the Graph part of the Cloud page for my Solr instances. I tried using the "delete" on zkCli but it still remains on that page. The only reliable thing that I've found is

Solr API for getting shard's leader/replica status

2014-09-04 Thread manohar211
Solr has a Admin UI where we can check each and every Collections that were deployed to Solr Cloud. For example, I can see a Slice/Shard in a collection up or not in the mentioned diagram. Our production environment doesn't provi

Re: Solr sort by fixed id list

2014-09-04 Thread davyme
And how would I do that? What I've done until now, is sort by query function, with increasing boosts, eg: sort=query({!v=id:(1^1 OR 2^2 OR 3^3 OR 4^4 OR )})+asc But this isn't very performant. When using +-7000 id's it will take about a minute for Solr to find results. I'm actually l

Re: Solr sort by fixed id list

2014-09-04 Thread Mikhail Khludnev
add increasing boosts. On Thu, Sep 4, 2014 at 11:03 AM, davyme wrote: > Hi, > > I'm search Solr by querying a list of id's. I want to get the solr search > results in the same order as the id list in the query. Can this be done? > > Thanks! > Davy > > > > -- > View this message in context: > ht

Re: HTTPS for SolrCloud

2014-09-04 Thread Shawn Heisey
On 9/2/2014 11:44 AM, Christopher Gross wrote: > OK -- so I think my previous attempts were causing the problem. > Since this is a dev environment (and is still empty), I just went ahead and > wiped out the "version-2" directories for the zookeeper nodes, reloaded my > solr collections, then ran th

Re: Server is shutting down due to threads

2014-09-04 Thread Shawn Heisey
On 9/3/2014 3:31 PM, Ethan wrote: > We have SolrCloud instance with 2 solr nodes and 3 zk ensemble. One of the > solr node goes down as soon as we send search traffic to it, but update > works fine. > > When I analyzed thread dump I saw lot of blocked threads with following > error message. This

Re: Solr add document over 20 times slower after upgrade from 4.0 to 4.9

2014-09-04 Thread Shawn Heisey
On 9/3/2014 8:14 PM, Li, Ryan wrote: > I have a Solr server indexes 2500 documents (up to 50MB each, ave 3MB) to > Solr server. When running on Solr 4.0 I managed to finish index in 3 hours. > > However after we upgrade to Solr 4.9, the index need 3 days to finish. > > I've done some profiling,

Solr sort by fixed id list

2014-09-04 Thread davyme
Hi, I'm search Solr by querying a list of id's. I want to get the solr search results in the same order as the id list in the query. Can this be done? Thanks! Davy -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-sort-by-fixed-id-list-tp4156854.html Sent from the So