How to index from zip file( .gz ) by using

2019-11-04 Thread Suman Pal
Hi, My name is Suman Pal,I am facing problem during indexing from zip file( .gz ) by using at present I able to index like below code: and my xml.xml as follows: file1 ... ... -- My

答复: Security Vulnerability Consultation

2019-11-04 Thread Huawei PSIRT
Dear Erik, Thank you for your fast reply. Best Regards, Huawei PSIRT -邮件原件- 发件人: Erik Hatcher [mailto:erik.hatc...@gmail.com] 发送时间: 2019年11月1日 21:50 收件人: solr-user@lucene.apache.org 抄送: Huawei PSIRT ; Renling 主题: Re: Security Vulnerability Consultation Hi - There are many "vuln

Re: BlobRepository "runtme.lib.size"

2019-11-04 Thread Erick Erickson
Thanks for pointing this out, I raised a JIRA for it: https://issues.apache.org/jira/browse/SOLR-13893 Best, Erick > On Nov 4, 2019, at 10:49 AM, Tim Swetland wrote: > > I believe I found an issue in org.apache.solr.core.BlobRepository. Not sure > if it's been reported already or not, but the M

Re: creating a core with a custom managed-schema

2019-11-04 Thread Erick Erickson
You’re confusing the admin API with the bin/solr script. If you look at the examples on that page, the form is: admin/cores?action=CREATE&name=core-name&instanceDir=path/to/dir&config=solrconfig.xml&dataDir=data what you used was: /opt/solr/bin/solr create…. Totally different beasts. > On Nov

Re: creating a core with a custom managed-schema

2019-11-04 Thread rhys J
On Mon, Nov 4, 2019 at 1:36 PM Erick Erickson wrote: > Well, just what it says. -schema isn’t a recognized parameter, where did > you get it? Did you try bin/solr create -help and follow the instructions > there? > > I am confused. This page: https://lucene.apache.org/solr/guide/7_0/coreadmin-ap

Re: creating a core with a custom managed-schema

2019-11-04 Thread Erick Erickson
Well, just what it says. -schema isn’t a recognized parameter, where did you get it? Did you try bin/solr create -help and follow the instructions there? Best, Erick > On Nov 4, 2019, at 12:34 PM, rhys J wrote: > > I have created a tmp directory where I want to have reside custom > managed-sch

creating a core with a custom managed-schema

2019-11-04 Thread rhys J
I have created a tmp directory where I want to have reside custom managed-schemas to use when creating cores. /tmp/solr_schema/CORENAME/managed-schema Based on this page: https://lucene.apache.org/solr/guide/7_0/coreadmin-api.html#coreadmin-create , I am running the following command: sudo -u so

BlobRepository "runtme.lib.size"

2019-11-04 Thread Tim Swetland
I believe I found an issue in org.apache.solr.core.BlobRepository. Not sure if it's been reported already or not, but the MAX_JAR_SIZE system property on line 63 is looking for a "runtme.lib.size" system property. I assume that should be runtime.lib.size, though feel free to correct me if I'm wrong

Re: Query regarding Path Hierarchy tokenizer

2019-11-04 Thread Erick Erickson
> But while querying those tokens, solr is not able to parse the > query. You need to show us exactly the query and the error message. At a guess, since you haven’t provided the information, you need to escape the colon since it’s part of the query syntax, i.e. something like q=field:c\:/usr B

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Erick Erickson
What Walter said. If you require displaying the version number in the UI, put that in a separate field. BTW, Delete-by-query can be expensive for various arcane reasons if you’re using SolrCloud. > On Nov 4, 2019, at 11:08 AM, Walter Underwood wrote: > > If it is the same document, why are yo

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Walter Underwood
If it is the same document, why are you changing the ID? Use the same ID and you are done. You won’t need to delete previous versions. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Nov 4, 2019, at 8:37 AM, Khare, Kushal (MIND) > wrote: > > In my

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Peter Lancaster
You can delete documents in SolrJ by using deleteByQuery. Using this you can delete any number of documents from your index or all your documents depending on the query you specify as the parameter. How you use it is down to your application. You haven't said if your application performs a full

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Thanks! Actually am working on a Java web application using SolrJ for Solr search. The users would actually be uploading/editing/deleting the docs. What have done is defined a location/directory where the docs would be stored and passed that location for indexing. So, I am quite confused how to c

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread David Hastings
delete them by query would do the trick unless im missing something significant in what youre trying to do here. you can just pass in an xml command: '".$kill_query."' On Mon, Nov 4, 2019 at 9:37 AM Khare, Kushal (MIND) < kushal.kh...@mind-infotech.com> wrote: > In my case, id won't be same. > Su

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
In my case, id won't be same. Suppose, I have a doc with id : 20 Now, it's newer version would be either 20.1 or 22 What in this case? -Original Message- From: David Hastings [mailto:hastings.recurs...@gmail.com] Sent: 04 November 2019 20:04 To: solr-user@lucene.apache.org Subject: Re: Dele

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Basically , what I need is to refresh the index. Suppose, in a directory I have 4 docs, that have been indexed. So, my search works upon those 4. Now, when I delete one of them, re-index and search, still that deleted document from the directory is being searched upon. Hope I have made it a bit m

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread David Hastings
when you add a new document using the same "id" value as another it just over writes it On Mon, Nov 4, 2019 at 9:30 AM Khare, Kushal (MIND) < kushal.kh...@mind-infotech.com> wrote: > Could you please let me know how to achieve that ? > > > -Original Message- > From: Jörn Franke [mailto:jo

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Could you please let me know how to achieve that ? -Original Message- From: Jörn Franke [mailto:jornfra...@gmail.com] Sent: 04 November 2019 19:59 To: solr-user@lucene.apache.org Subject: Re: Delete documents from the Solr index using SolrJ I don’t understand why it is not possible. How

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Jörn Franke
I don’t understand why it is not possible. However why don’t you simply overwrite the existing document instead of add+delete > Am 04.11.2019 um 15:12 schrieb Khare, Kushal (MIND) > : > > Hello mates! > I want to know how we can delete the documents from the Solr index . Suppose > for my sys

Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Hello mates! I want to know how we can delete the documents from the Solr index . Suppose for my system, I have a document that has been indexed, now its newer version is into use, so I want to use the latest one, for that I want the previous one to be deleted from the index. Kindly help me a wa

Re: Solr 8.3 Solrj streaming expressions do not return all field values

2019-11-04 Thread Jörn Franke
Most likely this issue can bei also reproduced in the admin UI for the streaming handler of a collection. > Am 04.11.2019 um 13:32 schrieb Jörn Franke : > > Hi, > > I use streaming expressions, e.g. > Sort(Select(search(...),id,if(eq(1,1),Y,N) as found), by=“field A asc”) > (Using export handl

Query regarding Path Hierarchy tokenizer

2019-11-04 Thread Shubham Goswami
Hello Community I am using Path Hierarchy Tokenizer in which i am storing a path as a field value. Tokenizer splits that path in different tokens and they can be used as synonyms. But while querying those tokens, solr is not able to parse the query. Can somebody please tell me how to query these k

Re: Deleted Docs increasing in Solr 6.1.0

2019-11-04 Thread Erick Erickson
First of all I wouldn’t worry about it unless you have a _significant_ number of deleted docs. The default TMP as of around Solr 7.5 should accumulate up to around 33% deleted docs. Prior to 7.5, the number of deleted docs could hover around 50% depending on the access pattern. expungeDeletes w

Solr 8.3 Solrj streaming expressions do not return all field values

2019-11-04 Thread Jörn Franke
Hi, I use streaming expressions, e.g. Sort(Select(search(...),id,if(eq(1,1),Y,N) as found), by=“field A asc”) (Using export handler, sort is not really mandatory , I will remove it later anyway) This works perfectly fine if I use Solr 8.2.0 (server + client). It returns Tuples in the form { “id

Deleted Docs increasing in Solr 6.1.0

2019-11-04 Thread vishal patel
We have 2 shards and 2 replicas in a testing environment.Deleted Docs are 18749 for one collection[documents].I have attached a screenshot of solr admin panel. (1) Would there any impact on disk size if deleted docs will increase? (2) We try to remove deleted doc by executing command : curl "http

Re: utilizenode doesn't work after cluster policy set

2019-11-04 Thread Yuan Zhao
Sorry for the interruption. The policy I use is wrong. It should be : "set-cluster-policy" : [{ "replica" : "<2", "shard" : "#EACH", "node" : "#ANY", }] }' It works pretty well now. On Mon, Nov 4, 2019 at 10:53 AM Yuan Zhao wrote: > Hi Team, > > I came across a strange behavior: > When

Re: Portable Solr

2019-11-04 Thread Furkan KAMACI
Hi, Are you looking for EmbeddedSolrServer [1]?: By the way, using Spring Boot with an embedded server is production ready [2]. On the other hand, embedded Solr with embedded Zookeper etc. less flexible and should be reserved for sp

Re: [ANNOUNCE] Apache Solr 8.3.0 released

2019-11-04 Thread Paras Lehana
Hey Ishan, Somedays back it was announced that the foundation will majorly focus on HTML guides now and thus, 8.2 guide was released (which was said to be shorter than 8.0). C*an we expect Ref Guide 8.3 in coming days* or maybe is it not required? Asking because we are planning to upgrade to lates