Re: partial update in solr

2018-10-30 Thread Zahra Aminolroaya
Alex I use solr 7. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: partial update in solr

2018-10-29 Thread Zahra Aminolroaya
Thanks Alex. I want to have a query for atomic update with solrj like below: http://localhost:8983/solr/test4/update?preprocessor=atomic=set=set=set=true=%3Cadd%3E%3Cdoc%3E%3Cfield%20name=%22id%22%3E11%3C/field%3E%3Cfield%20name=%22text3%22%20update=%22set%22%3Ehi%3C/field%3E%3C/doc%3E%3C/add%3E

Re: partial update in solr

2018-10-29 Thread Zahra Aminolroaya
Thanks Alex. I try the following to set the atomic processor: http://localhost:8983/solr/test4/update?processor=atomic=add However, I get the following error: 400 4 org.apache.solr.common.SolrException org.apache.solr.common.SolrException No such processor atomic 400 I read in

partial update in solr

2018-10-24 Thread Zahra Aminolroaya
Does Solr have a partial update like elastic? Elastic will automatically merge new document with the existing one having the same id. For example if the new document has a value for field that it was previously null, it will add the value for that field. However, based on what I found,

Re: Casting from schemaless to classic schema

2018-10-24 Thread Zahra Aminolroaya
Thanks Alexandre and Shawn. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Casting from schemaless to classic schema

2018-10-17 Thread Zahra Aminolroaya
I want to change my Solr from schemaless to classic schema. I read https://stackoverflow.com/questions/29819854/how-does-solrs-schema-less-feature-work-how-to-revert-it-to-classic-schema

Re: using uuid for documents

2018-09-22 Thread Zahra Aminolroaya
Hello Alfonso, I expected that we could use *uuid* updateRequestProcessorChain like below for generating unique value for unique key: uniqueKey However, I saw that you used *dedupe* updateRequestProcessorChain as below; true ……… I wonder if we can use

Re: using uuid for documents

2018-09-17 Thread Zahra Aminolroaya
Hello Alfonso, Thanks. You used the dedupe updateRequestProcessorChain, so for this application we cannot use the uuid updateRequestProcessorChain individually?! Best, Zahra -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

using uuid for documents

2018-09-16 Thread Zahra Aminolroaya
I have two questions about using uuid: In Solr refs, it is stated that the unique id could be of uuid type. I found we can generate uuid when the doc id with uuid field type is null or we it is generated by using doc.addField("id", UUID.randomUUID().toString()) in solrj. 1- Suppose my unique

Re: Error casting to PointField

2018-09-16 Thread Zahra Aminolroaya
Thanks Shawn and Erick. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Error casting to PointField

2018-09-11 Thread Zahra Aminolroaya
Thanks Erick. We used to use TrieLongField for our unique id and in the document it is said that all Trie* fieldtypes are casting to *pointfieldtypes. What would be the alternative solution? Best, Zahra -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Error casting to PointField

2018-09-11 Thread Zahra Aminolroaya
We read that in Solr 7, Trie* fields are deprecated, so we decided to change all of our Trie* fields to *pointtype Fields. Our unique key field type is long, and we changed our long field type something like below; We get the error uniqueKey field can not be configured to use a Points based

Re: Error with plugin in Solrcloud

2018-09-02 Thread Zahra Aminolroaya
Thanks Shawn. I wrote my own filter. I attached my jar in hear. I found your answer in hear: http://lucene.472066.n3.nabble.com/How-to-load-plugins-with-Solr-4-9-and-SolrCloud-td4312113.html Based on your answer, is it possible that blob Api does not work for my own filter jar? norm.jar

Rectangle with rotation in Solr

2018-08-29 Thread Zahra Aminolroaya
I have locations with 4-tuple (longitude,latitude) which are like rectangles and I want to index them. Solr BBoxField with minX, maxX, maxY and minY, only considers rectangles which does not have rotations. suppose my rectangle is rotated 45 degree clockwise based on axis, how can I define

Re: Error with plugin in Solrcloud

2018-08-18 Thread Zahra Aminolroaya
Thanks Shawn. For Solr mode I should include all dependencies in lib, so I thought for Solr Cloud mode I should include the dependencies too. The error is as follows: Caused by: org.apache.solr.common.SolrException: Unable to reload core [textd_shard1_replica2] at

Re: Error with plugin in Solrcloud

2018-08-18 Thread Zahra Aminolroaya
Thanks Shawn. For Solr mode I should include all dependencies in lib, so I thought for Solr Cloud mode I should include the dependencies too. The error is as follows: java.util.concurrent.ExecutionException: org.apache.solr.common.SolrException: Unable to create core

Error with plugin in Solrcloud

2018-08-18 Thread Zahra Aminolroaya
My plugin works correctly in Solr. Now I want to have my plugin in solrCloud mode: I have a main jar file named "norm" and I have other jar files that my "norm" is dependent on them: "lucene-analyzers-common-6.6.1","lucene-core-6.6.1","slf4j-api-1.7.7","solr-core-6.6.1". With the help of config

Re: Docvalue v.s. invert index

2018-08-13 Thread Zahra Aminolroaya
Thanks Erick, Shawn and Tomoko for complete answers. If I set both docvalue and indexed "true" in a field, will Solr understand to use which technique for faceting or searching? Or Is there any way to inform Solr to use which technique? -- Sent from:

Docvalue v.s. invert index

2018-08-12 Thread Zahra Aminolroaya
Could we say that docvalue technique is better for sorting and faceting and inverted index one is better for searching? Will I lose anything if I only use docvalue? Does docvalue technique have better performance? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: truncate string field type

2018-07-10 Thread Zahra Aminolroaya
suppose I want to search the "l(i|a)*on k(i|e)*ng". there is a space between two words. I want solr to retrieve the exact match that these two words or their other cases are adjacent. If I want to use text field type, each one of these words are considered as tokens, so solr may bring back other

Re: truncate string field type

2018-07-10 Thread Zahra Aminolroaya
Thanks Alexandre and Erick. Erick I want to use my regular expression to search a field and Solr text field token the document, so the regular expression result will not be valid. I want Solr not to token my doc, although I will lose some terms using solr string. -- Sent from:

truncate string field type

2018-07-07 Thread Zahra Aminolroaya
I want to truncate my string field type due to its number of bytes limit. I wrote the following in my schema: However, I found that StrField (string) does not support specifying an analyzer. Besides, prefixLength in TruncateTokenFilterFactory could

Re: Errors when using Blob API

2018-07-04 Thread Zahra Aminolroaya
Thanks shawn. I removed the space from header because I got another error. I finally used "Content-Type: application/octet-stream" instead of 'Content-Type: application/octet-stream' and all of errors even the space limit error solved. -- Sent from:

Errors when using Blob API

2018-07-03 Thread Zahra Aminolroaya
I want to transfer my jar files to my ".system" collection in "Solrcloud". One of my solr port is My jar file name is "norm", and the following is my command for this transfer: / curl -X POST -H 'Content-Type:application/octet-stream' --data-binary @norm.jar

Re: Error in solr Plugin

2018-06-25 Thread Zahra Aminolroaya
Thanks Andrea and Erick -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Error in solr Plugin

2018-06-24 Thread Zahra Aminolroaya
Thanks Andrea. Do you mean all of my jar file versions should be 6.6.1? The lucene-core7 had some useful functions like incrementToken which I could not find in previous versions because of that I used this version. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Error in solr Plugin

2018-06-24 Thread Zahra Aminolroaya
I am using solr 6.6.1. I want to write my own analyzer for the field type "text_general" in schema. the field type in schema is as follows: When I test the filter in Java, everything is alright; However, when I start my solr I get the following error:

Re: code v.s. schema for BEST_COMPRESSION mode

2018-06-17 Thread Zahra Aminolroaya
Thanks -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

code v.s. schema for BEST_COMPRESSION mode

2018-06-16 Thread Zahra Aminolroaya
I want to reduce the size of indexed and stored documents in Solr. I found two way in the first solution http://https://lucene.apache.org/solr/guide/6_6/codec-factory.html#solr-schemacodecfactory it

Re: Changing Leadership in SolrCloud

2018-03-02 Thread Zahra Aminolroaya
Dear Mr. Shalin, Yes. I mean "state" in Cluster State API and UI. Let me explain what happened previous days by detail: Think I have Collection A distributed across node1 (the leader), node2 and node 3. I used the following command to block node 1 solr and zookeeper ports from being listend:

Re: Changing Leadership in SolrCloud

2018-02-27 Thread Zahra Aminolroaya
Thanks Shalin. our "zkClientTimeout" is 3, so the leader should be changed by now; However, the previous leader is still active. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Changing Leadership in SolrCloud

2018-02-27 Thread Zahra Aminolroaya
The leader status is active. My main question is that how I can change the leader in SolrCloud. -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Changing Leadership in SolrCloud

2018-02-27 Thread Zahra Aminolroaya
Thanks Shawn for the reply. when I try to add a document to solr I get the "no route to host" exception. this means that SolrCloud is aware of the blocking ports; However, zookeeper does not automatically change the leader! -- Sent from: