update doc with a xml-format string

2013-12-20 Thread YouPeng Yang
Hi solr users I have a string field to store a xml string. Now I want to update the field.I use the command. http://10.7.23.122:8080/solr/meta_core/update?stream.body=shardTv_20131031"REP_DATE>20130930 and REP_DATE<20131003 "&commit=true The red color string is what I want to update .However

Re: update doc with a xml-format string

2013-12-20 Thread Gora Mohanty
On 20 December 2013 13:57, YouPeng Yang wrote: > Hi solr users > > I have a string field to store a xml string. Now I want to update the > field.I use the command. > > http://10.7.23.122:8080/solr/meta_core/update?stream.body= name="name">shardTv_20131031 name="jobFirstRunExpress" >" type=\"str

Re: update doc with a xml-format string

2013-12-20 Thread YouPeng Yang
Hi Thanks for your reply. The is actually what I want to update the doc. That is I intend to update the xml string to one of the fields of my doc. The url I have not found I want. Any way,thanks a lot. Regards. 2013/12/20 Gora Mohanty > On 20 December 2013 13:57, YouPeng Yang

Re: update doc with a xml-format string

2013-12-20 Thread Daniel Collins
Yes, but you are putting the tag (which is an XML construct) as a value of an XML element, so it has to be encoded? You've put it in quotes, but that's not valid as far as XML is concerned. I'm not an XML expert but all the XML tags (root, conditionGroup, etc) have to encoded so they aren't parse

Re: update doc with a xml-format string

2013-12-20 Thread Daniel Collins
Alternatively, use something like http://www.w3schools.com/xml/xml_cdata.asp and put all your values in a CDATA block. Again, I'm not an XML guru but something like that should get you moving. On 20 December 2013 09:05, Daniel Collins wrote: > Yes, but you are putting the tag (which is an XML

Re: update doc with a xml-format string

2013-12-20 Thread Gora Mohanty
On 20 December 2013 14:18, YouPeng Yang wrote: > Hi >Thanks for your reply. > >The is actually what I want to update the doc. That > is I intend to update the xml string to one of the fields of my doc. [...] Ah, sorry, I missed that. As others have followed up, you need to escape t

Re: PeerSync Recovery fails, starting Replication Recovery

2013-12-20 Thread Anca Kopetz
Hi, We used to have many "Client session timeout" messages in solr logs. INFO org.apache.zookeeper.ClientCnxn:run:1083 - Client session timed out, have not heard from server in 18461ms for sessionid 0x242047fc6d77804, closing socket connection and attempting reconnect Then we set the zkClient

Re: PeerSync Recovery fails, starting Replication Recovery

2013-12-20 Thread Anca Kopetz
Hi, We do not use a NRT solution. We do a hardCommit (autocommit with openSearcher=false) every 15 minutes, and updates with commitWithin every 30 minutes. The updates are done one by one by many feeders, we do not send batches of documents. Solr version : 4.5.1 Yes, the problem is before the r

Re: update doc with a xml-format string

2013-12-20 Thread YouPeng Yang
Hi thanks. I add the CDATA like : update?stream.body=shardTv_20131031&commit=true and the field jobFirstRunExpress in the doc just like : jobFirstRunExpress":"REP_DATE>20130930 and REP_DATE<20131003" it seems the xml tags were omitted. 2013/12/20 Gora Mohanty > On 20 December 2

Re: update doc with a xml-format string

2013-12-20 Thread Daniel Collins
What's the schema definition for that field? Are you stripping HTML in your analyzer chain? Can you run it through the analyzer screen in the admin UI to confirm that the raw data goes through as you expect? Can you add a document via the admin UI and see that the data in the index is correct? Hav

Re: update doc with a xml-format string

2013-12-20 Thread yypvsxf19870706
Your suggestions light me. The type is just string. I will try the left advices . Thanks a lot. 发自我的 iPhone 在 2013-12-20,19:09,Daniel Collins 写道: > What's the schema definition for that field? Are you stripping HTML in > your analyzer chain? Can you run it through the analyzer screen in the >

Re: Cross referencing of solr documents

2013-12-20 Thread Jack Krupansky
You have have to identify some field of the first document that uniquely identifies it as being distinct from the others which have the same unique ID key field (which is now non-unique.) Then you can boost based on that differentiating field. But... you should confirm whether you really need

Spellchecking problem

2013-12-20 Thread Gastone Penzo
Hello, i have problem with spellchecking. i use solr to index an ecommerce products (dvd, cd, books ecc) the collation is only one but in the index there'is the field: typology (of product) When i build spellchecking indexes, they are build together. How can i have only suggestsions of one typolog

RE: Spellchecking problem

2013-12-20 Thread Dyer, James
If you are using "spellcheck.maxCollateTries" with a value greater than 0 the *collatation* section of your spellcheck response will give query corrections that are proven to produce hits. Possibly you were looking at the first section where it gives individual word suggestions? Or maybe one o

Re: Spellchecking problem

2013-12-20 Thread Gastone Penzo
Thank you for your answer. this is the querystring http://seshat:9000/solr/browse/?q=otto+maialotto&fq=shelf:GIO&qf=ean^0 title^0.0035 authors^0 publisher^0 series^0 contributors^0 characters^0 manufacturer^0 actors^0 directors^0 tags^0 category_label^0 &pf=ean^0 title^0.0035 authors^0 publisher^

Re: Shards stuck in "down" state after splitting shard - How can we recover from a failed SPLITSHARD?

2013-12-20 Thread cwhi
Thanks for your reply Anshum. I took a look at clusterstate.json, and it seems they are stuck in "construction" while the others are still active. I'm able to query my index again (that seems to have been an unrelated issue), but I'd still like to remove these stuck shards and recreate them (or f

Re: Cross referencing of solr documents

2013-12-20 Thread neerajp
Thanks Jack for throwing your idea. I tell you my problem in more detail. I have an email which I have to index. The email contains some text contents (email headers, email body) and binary data (email attachments in pdf, doc etc formats). I want to index text and binary contents separately. So I a

Re: Shards stuck in "down" state after splitting shard - How can we recover from a failed SPLITSHARD?

2013-12-20 Thread cwhi
My apologies, I forgot to paste the output of clusterstate.json to my last post. Here it is: [zk: localhost:2181(CONNECTED) 1] get /clusterstate.json {"collection1":{ "shards":{ "shard1":{ "range":"8000-d554", "state":"active", "replicas":{"10.0.0.229:844

SolrCloud - "KeeperErrorCode = NoNode" - after restart

2013-12-20 Thread Bojan Šmid
Hi, I have a cluster with 5 Solr nodes (4.6 release) and 5 ZKs, with around 2000 collections (each with single shard, each shard having 1 or 2 replicas), running on Tomcat. Each Solr node hosts around 1000 physical cores. When starting any node, I almost always see errors like: 2013-12-19 18

RE: Spellchecking problem

2013-12-20 Thread Dyer, James
Gastone, You may, at least while developing, specify "spellcheck.collateExtendedResults=true" so you can see for sure it has verified how many hits each collation would return. But my guess is that your "mm" parameter makes pretty much anything return some hits. You might want to specify "spe

Re: email datasource connect timeout issue

2013-12-20 Thread Greg Walters
Xie, Based on the error message: ** Caused by: javax.mail.MessagingException: Connection timed out; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571) at javax.mail.Service.connect(Servic

Re: Question about replication problem

2013-12-20 Thread Fred Drake
Here's another sequence of messages I frequently see where replication isn't happening with no clearly identified cause: INFO org.apache.solr.handler.SnapPuller; Starting replication process INFO org.apache.solr.handler.SnapPuller; Master's generation: 6 INFO org.apache.solr.handler.SnapPuller;

Re: Question about replication problem

2013-12-20 Thread Mark Miller
What Solr version? - Mark On Dec 20, 2013, at 1:14 PM, Fred Drake wrote: > Here's another sequence of messages I frequently see where replication > isn't happening with no clearly identified cause: > > INFO org.apache.solr.handler.SnapPuller; Starting replication process > INFO org.apache.so

Re: Question about replication problem

2013-12-20 Thread Fred Drake
On Fri, Dec 20, 2013 at 1:33 PM, Mark Miller wrote: > What Solr version? I've seen the first problem in the thread with Solr 4.1, and the second with both 4.1 and 4.6. -Fred -- Fred L. Drake, Jr. "A storm broke loose in my mind." --Albert Einstein

Errors on index in SolrCloud: ConcurrentUpdateSolrServer$Runner.run()

2013-12-20 Thread cwhit
I have a SolrCloud index with ~5 million documents, which I'm committing to with SolrNet, 1000 documents at a time. I'm able to query just fine, but indexing new documents is causing Solr to throw the following exception every time: ERROR - 2013-12-18 20:27:05.750; org.apache.solr.update.Stream

Re: Shards stuck in "down" state after splitting shard - How can we recover from a failed SPLITSHARD?

2013-12-20 Thread Anshum Gupta
Looking at this, it doesn't look like the operation completed. Also, the parent shard seems to be intact and ideally should have served the results. Until splitting and replication completes, the sub-shards don't go active (and the parent shard doesn't go inactive). Can you give me more informatio

Failure initializing default system SSL context

2013-12-20 Thread Patel, Pritesh
Hello I am using solr-solr4.5.1.jar with httpclient 4.3. I put these jars a lib folder within WEB-INF of the war file that I am creating. I deploy the war to Tomcat 6. When I run the code, I get this error when I try to run a query to solr. This works when I use the solr-solr-3.6.1.jar but

Re: Facet field query on subset of documents

2013-12-20 Thread Toby Lazar
Luis (or anyone else), Did you ever find a solution for this problem? If not, is querying twice the way to go? I'm looking to do the same with no luck yet. Thanks, Toby *** Toby Lazar Capital Technology Group Email: tla...@capitaltg.com Mobile: 646-469-5865

Re: Shards stuck in "down" state after splitting shard - How can we recover from a failed SPLITSHARD?

2013-12-20 Thread cwhi
Thanks again for your replies. I'm using Solr 4.6. I just tried splitting another shard so I could grab the exceptions from the logs, and here is the log output. I noticed a few obvious exceptions that might have caused this to fail, such as this: ERROR - 20

Re: Failure initializing default system SSL context

2013-12-20 Thread Shawn Heisey
On 12/20/2013 1:39 PM, Patel, Pritesh wrote: > I am using solr-solr4.5.1.jar with httpclient 4.3. I put these jars a lib > folder within WEB-INF of the war file that I am creating. I deploy the war > to Tomcat 6. > > When I run the code, I get this error when I try to run a query to solr. >

SOLR 4.6.1

2013-12-20 Thread William Bell
Low risk one for 4.6.1? 1. SOLR-5543 -- Bill Bell billnb...@gmail.com cell 720-256-8076