how to avoid recover? how to ensure a recover success?

2013-10-21 Thread sling
Hi, guys: I have an online application with solrcloud 4.1, but I get errors of syncpeer every 2 or 3 weeks... In my opinion, a recover occers when a replica can not sync data to its leader successfully. I see the topic http://lucene.472066.n3.nabble.com/SolrCloud-5x-Errors-while-recovering-td402

Re: how to avoid recover? how to ensure a recover success?

2013-10-22 Thread sling
There is 8Gb index in each replica, 8 nodes , 4 shards and 4 collections in this application. in test enviroment, it can get 20 qps with no pressure. but the index size is small too... -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-avoid-recover-how-to-ensure-a-rec

a function query of time, frequency and score.

2013-11-21 Thread sling
query could work with function query well. The function query is implemented as the score multiplied by an decreased date-weight array. However, I have got no idea to add the frequency to this formula... so could someone give me a clue? Thanks again! sling -- View this message in context

In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-25 Thread sling
rser.java:142) at org.apache.solr.search.BoostQParserPlugin$1.parse(BoostQParserPlugin.java:61) at org.apache.solr.search.QParser.getQuery(QParser.java:142) at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:117) ... 13 more so, how to make fp.parseValueSource(

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-25 Thread sling
es(xxx)" Therefore I change my code, but when fp.parseValueSource(), it throws an error like this: org.apache.solr.search.SyntaxError: Expected identifier at pos 12 str='dateDeboost()' Do I describe clearly this time? Thanks again! sling -- View this message in context: http://lucene.472066.n3.nabble.com/

Re: a function query of time, frequency and score.

2013-11-25 Thread sling
Thanks, Erick. What I want to do is custom the sort by date, time, and number. I want to know is there some formula to tackle this. Thanks again! sling On Fri, Nov 22, 2013 at 9:11 PM, Erick Erickson [via Lucene] < ml-node+s472066n4102599...@n3.nabble.com> wrote: > Not quite sure wh

Re: In a functon query, I can't get the ValueSource when extend ValueSourceParser

2013-11-26 Thread sling
Thank you, kydryavtsev andrey! You give me the right solution. -- View this message in context: http://lucene.472066.n3.nabble.com/In-a-functon-query-I-can-t-get-the-ValueSource-when-extend-ValueSourceParser-tp4103026p4103449.html Sent from the Solr - User mailing list archive at Nabble.com.

SolrCloud FunctionQuery inconsistency

2013-12-02 Thread sling
Hi, I have a solrcloud with 4 shards. They are running normally. How is possible that the same function query returns different results? And it happens even in the same shard? However, when sort by "ptime desc", the result is consistent. The dateDeboost generate the time-weight from ptime, which

Re: SolrCloud FunctionQuery inconsistency

2013-12-02 Thread sling
consistent. But for the same query, it shows diffenents sort(either sort A or sort B) over and over. Thanks, sling -- View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-FunctionQuery-inconsistency-tp4104346p4104549.html Sent from the Solr - User mailing list archive at

Re: SolrCloud FunctionQuery inconsistency

2013-12-02 Thread sling
Thank for your reply, Chris. Yes, I am populating "ptime" using a default of "NOW". I only store the id, so I can't get ptime values. But from the perspective of business logic, ptime should not change. Strangely, the sort result is consistent now... :( I should do more test case... -- View t

Re: SolrCloud FunctionQuery inconsistency

2013-12-03 Thread sling
Thanks, Chirs: The schema is: There is no default value for ptime. It is generated by users. There are 4 shards in this solrcloud, and 2 nodes in each shard. I was trying query with a function query({!boost b=dateDeboost(ptime)} channelid:0082 && title:abc), which leads differents results fro

RE: SolrCloud FunctionQuery inconsistency

2013-12-04 Thread sling
Hi Raju, Collection is a concept in solrcloud, and core is in standalone mode. So you can create multiple cores in solr standalone mode, not collections. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-FunctionQuery-inconsistency-tp4104346p4104888.html Sent from th

Re: SolrCloud FunctionQuery inconsistency

2013-12-05 Thread sling
By the way, the "shards" param is running ok with the value "localhost:7574/solr,localhost:8983/solr" or "shard2", but it get an exception with only one replica "localhost:7574/solr"; right: shards=204.lead.index.com:9090/solr/doc/,66.index.com:8080/solr/doc/ wrong: shards=204.lead.index.c

Re: SolrCloud FunctionQuery inconsistency

2013-12-06 Thread sling
Thank you, Chris. I notice crontabs are performed at different time in replicas(delayed for 10 minutes against its leader), and these crontabs is to reload dic files. Therefore, the terms are slightly different between replicas. So the maxScore shows difference. Best, Sling -- View this

why does a node switch state ?

2013-08-28 Thread sling
hi, I have a solrcloud with 8 jvm, which has 4 shards(2 nodes for each shard). 1000 000 docs are indexed per day, and 10 query requests per second, and sometimes, maybe there are 100 query requests per second. in each shard, one jvm has 8G ram, and another has 5G. the jvm args is like this: -Xmx5

Re: why does a node switch state ?

2013-08-28 Thread sling
Hi Daniel, thank you very much for your reply. However, my zkTimeout in solr.xml is 30s. ... -- View this message in context: http://lucene.472066.n3.nabble.com/why-does-a-node-switch-state-tp4086939p4087142.html Sent from the Solr - User mailing list archive at Nabble.com.

solr4.1 No live SolrServers available to handle this request

2013-04-01 Thread sling
hi,all. I am new to Solr. when i query solrcloud4.1 with solrj, the client throws exceptions as follows. there are 2 shards in my solrcloud. each shard is on a server with 4cpu/3G RAM, and jvm has 2G ram. when the query requests get more and more, the exception occers. [java] org.apache.solr

Re: solr4.1 No live SolrServers available to handle this request

2013-04-01 Thread sling
thx for your reply. my solr.xml is like this: i have change the zkclienttimeout from 15s to 30s, but this exception still shows. and the load on solrcloud servers are not too heavy, they are 1.4 1.5 1. and these disconnects appear in solrj logs, while the solrcloud is

in solrcoud, how to assign a schemaConf to a collection ?

2013-04-19 Thread sling
hi all, help~~~ how to specify a schema to a collection in solrcloud? i have a solrcloud with 3 collections, and each configfile is uploaded to zk like this: args="-Xmn3000m -Xms5000m -Xmx5000m -XX:MaxPermSize=384m -Dbootstrap_confdir=/workspace/solr/solrhome/doc/conf -Dcollection.configName=docco

Re: in solrcoud, how to assign a schemaConf to a collection ?

2013-04-19 Thread sling
when i add a schema property to it seems there a default path to schema ,that is /configs/docconf/ the exception is: [18:59:09.211] java.lang.IllegalArgumentException: Invalid path string "/configs/docconf/../picconf/schema.xml" caused by relative paths not allowed @18 [18:59:09.211] at org.apac

Re: in solrcoud, how to assign a schemaConf to a collection ?

2013-04-19 Thread sling
i copy the 3 schema.xml and solrconfig.xml to $solrhome/conf/.xml, and upload this filedir to zk like this: args="-Xmn1000m -Xms2000m -Xmx2000m -XX:MaxPermSize=384m -Dbootstrap_confdir=/home/app/workspace/solrcloud/solr/solrhome/conf -Dcollection.configName=conf -DzkHost=zk1:2181,zk2:2181,zk3:2