Running Simple Streaming expressions in a loop through SolrJ stops with read timeout after a few iterations

2021-03-02 Thread ufuk yılmaz
I’m using the following example on Lucidworks to use streaming expressions from SolrJ: https://lucidworks.com/post/streaming-expressions-in-solrj/ Problem is, when I run it inside a for loop, even the simplest expression (echo) stops executing after about 5 iterations. I thought the underlying

Re: SolrJ: SolrInputDocument.addField()

2021-02-16 Thread Shawn Heisey
On 2/15/2021 10:17 AM, Steven White wrote: Yes, I have managed schema enabled like so: true cp-schema.xml The reason why I enabled it is so that I can dynamically customize the schema based on what's in the DB. So that I can add fields to the schema dynamically. A managed/m

Re: SolrJ: SolrInputDocument.addField()

2021-02-16 Thread Jimi Hullegård
Hi Steven, Just a thought, from someone who never have used schema-less mode: Have you considered using a regular schema file, with a bunch of dynamicField definitions? Then you can for example define a dynamic boolean field like this: Then, when you index the data, you can append "_b" to the

Re: SolrJ: SolrInputDocument.addField()

2021-02-15 Thread Steven White
ata. Not only that, > it > > will set default values. For example, this call > > > > SolrInputDocument doc = new SolrInputDocument(); > > doc.addField("Company", "ACM company"); > > > > Will create the following: > > > &

Re: SolrJ: SolrInputDocument.addField()

2021-02-15 Thread Shawn Heisey
t will set default values. For example, this call SolrInputDocument doc = new SolrInputDocument(); doc.addField("Company", "ACM company"); Will create the following: That SolrJ code does not make those changes to your schema. At least not in the way y

Re: SolrJ: SolrInputDocument.addField()

2021-02-15 Thread Steven White
lyzer will not be used to name one). It looks to me that the only way I can fix this is to first create the field type first and then call addField() passing it the field I just created. To that end, I cannot find a SolrJ API to create a field type. Is that the case? Steven. On Sun, Feb 14

Re: SolrJ: SolrInputDocument.addField()

2021-02-14 Thread Shawn Heisey
On 2/14/2021 9:00 AM, Steven White wrote: It looks like I'm misusing SolrJ API SolrInputDocument.addField() thus I need clarification. Here is an example of what I have in my code: SolrInputDocument doc = new SolrInputDocument(); doc.addField("MyFieldOne&qu

SolrJ: SolrInputDocument.addField()

2021-02-14 Thread Steven White
Hi everyone, It looks like I'm misusing SolrJ API SolrInputDocument.addField() thus I need clarification. Here is an example of what I have in my code: SolrInputDocument doc = new SolrInputDocument(); doc.addField("MyFieldOne", "some data"); doc.addField

Re: Change uniqueKey using SolrJ

2021-02-01 Thread Jason Gerlowski
Hi, SolrJ doesn't have any purpose-made request class to change the uniqueKey, afaict. However doing so is still possible (though less convenient) using the "GenericSolrRequest" class, which can be used to hit arbitrary Solr APIs. If you'd like to see better support for t

Re: Getting Solr's statistic using SolrJ

2021-02-01 Thread Jason Gerlowski
Hi Steven, AFAIK, SolrJ doesn't have built in request objects for the metrics API. But you can still use the "GenericSolrRequest" class to hit any Solr API: e.g. SolrParams params = new ModifiableSolrParams(); params.set("action", "list"); GenericSolrReque

RE: Getting Solr's statistic using SolrJ

2021-01-22 Thread Gael Jourdan-Weil
Hello Steven, I believe what you are looking for cannot be accessed using SolrJ (I didn't really check though). But you can easily access it either via the Collections APIs and/or the Metrics API depending on what you need exactly. See https://lucene.apache.org/solr/guide/8_4/cluster

Getting Solr's statistic using SolrJ

2021-01-22 Thread Steven White
Hi everyone, Is there a SolrJ API that I can use to collect statistics data about Solr (everything that I see on the dashboard if possible)? I am in need to collect data about Solr instances, those same data that I see on the dashboard such as swap-memory, jvm-memory, list of cores, info about

Change uniqueKey using SolrJ

2021-01-22 Thread Timo Grün
Hi All, I’m currently trying to change the uniqueKey of my Solr Cloud schema using Solrj. While creating new Fields and FieldDefinitions is pretty straight forward, I struggle to find any solution to change the Unique Key field with Solrj. Any advice here? Best Regards, Timo Gruen

Re: Sending compressed (gzip) UpdateRequest with SolrJ

2021-01-08 Thread Walter Underwood
s it doesn't seem to be the > default. > However I found a configuration not documented that needs to be set in the > GzipHandler for it to work: inflateBufferSize. > > For SolrJ it still hacky to send gzip requests, maybe easier to use a regular > http call.. > >

RE: Sending compressed (gzip) UpdateRequest with SolrJ

2021-01-08 Thread Gael Jourdan-Weil
You're right Matthew. Jetty supports it for responses but for requests it doesn't seem to be the default. However I found a configuration not documented that needs to be set in the GzipHandler for it to work: inflateBufferSize. For SolrJ it still hacky to send gzip requests, maybe

Re: Sending compressed (gzip) UpdateRequest with SolrJ

2021-01-07 Thread matthew sporleder
jetty supports http gzip and I've added it to solr before in my own installs (and submitted patches to do so by default to solr) but I don't know about the handling for solrj. IME compression helps a little, sometimes a lot, and never hurts. Even the admin interface benefits a lot fr

RE: Sending compressed (gzip) UpdateRequest with SolrJ

2021-01-07 Thread Gael Jourdan-Weil
Answering to myself on this one. Solr uses Jetty 9.x which does not support compressed requests by itself meaning, the application behind Jetty (that is Solr) has to decompress by itself which is not the case for now. Thus even without using SolrJ, sending XML compressed in GZIP to Solr (with

Sending compressed (gzip) UpdateRequest with SolrJ

2021-01-05 Thread Gael Jourdan-Weil
Hello, I was wondering if someone ever had the need to send compressed (gzip) update requests (adding/deleting documents), especially using SolrJ. Somehow I expected it to be done by default, but didn't find any documentation about it and when looking at the code it seems there is no opti

Re: Solrj supporting term vector component ?

2020-12-04 Thread Erick Erickson
To expand on Shawn’s comment. There are a lot of built-in helper methods in SolrJ, but they all amount to setting a value in the underlying map of params, which you can do yourself for any parameter you could specify on a URL or cURL command. For instance, SolrQuery.setStart(start) is just

Re: Solrj supporting term vector component ?

2020-12-03 Thread Shawn Heisey
On 12/3/2020 10:20 AM, Deepu wrote: I am planning to use Term vector component for one of the use cases, as per below solr documentation link solrj not supporting Term Vector Component, do you have any other suggestions to use TVC in java application? https://lucene.apache.org/solr/guide/8_4

Solrj supporting term vector component ?

2020-12-03 Thread Deepu
Dear Community Members, I am planning to use Term vector component for one of the use cases, as per below solr documentation link solrj not supporting Term Vector Component, do you have any other suggestions to use TVC in java application? https://lucene.apache.org/solr/guide/8_4/the-term-vector

Re: SolrJ NestableJsonFacet ordering of query facet

2020-11-19 Thread Jason Gerlowski
Hi Shivram, I think the short answer is "no". At least, not without sub-classing some of the JSON-Facet classes in SolrJ. But it's hard for me to understand your particular concern without seeing a concrete example. If you provide an example (maybe in the form of a JUnit test

Re: getFirstValue problem with solrj

2020-11-05 Thread Raivo Rebane
Heloo I found mistake Thanks Raivo On 05.11.20 17:08, Raivo Rebane wrote: Hello I have one problem I made a query as foollws :                     System.out.println("Querying by using SolrQuery...");                     SolrQuery solrQuery = new SolrQuery("Name:" + Pattern);            

getFirstValue problem with solrj

2020-11-05 Thread Raivo Rebane
Hello I have one problem I made a query as foollws :                     System.out.println("Querying by using SolrQuery...");                     SolrQuery solrQuery = new SolrQuery("Name:" + Pattern);                     solrQuery.addField("id");                     solrQuery.addField("App_co

Re: SolrJ NestableJsonFacet ordering of query facet

2020-10-29 Thread Shivam Jha
Hi folks, Does anyone have any advice on this issue? Thanks, Shivam On Tue, Oct 27, 2020 at 1:20 PM Shivam Jha wrote: > Hi folks, > > Doing some faceted queries using 'facet.json' param and SolrJ, the results > of which I am processing using SolrJ NestableJsonFacet

SolrJ NestableJsonFacet ordering of query facet

2020-10-27 Thread Shivam Jha
Hi folks, Doing some faceted queries using 'facet.json' param and SolrJ, the results of which I am processing using SolrJ NestableJsonFacet class. basically as *queryResponse.getJsonFacetingResponse() -> returns *NestableJsonFacet object. But I have noticed it does not maintain th

I can cannot execute my SolrJ application

2020-10-21 Thread Raivo Rebane
Hello I can compile my project properliy; But problems arise when I execute it with Maven and got problems I dont know have these solrj problems or maven problems: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /home/hydra/workspace1/test/EMBEDDED Java version

SolrJ doesn't find symbol

2020-10-20 Thread Raivo Rebane
Hello I want to use solrj in Maven project, but I got errors: [ERROR] /home/hydra/workspace1/kaks/src/main/java/solr/SolrJExample.java:[9,36] cannot find symbol [ERROR]   symbol:   class SolrClient [ERROR]   location: package org.apache.solr.client.solrj [ERROR] /home/hydra/workspace1/kaks

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-18 Thread Frank Vos
11 M 06 83 33 57 95 Efrank@reddata.nl<mailto:frank@reddata.nl> Van: Alexandre Rafalovitch Datum: donderdag, 17 september 2020 om 21:07 Aan: solr-user Onderwerp: Re: NPE Issue with atomic update to nested document or child document through SolrJ The missing underscor

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-18 Thread Frank Vos
atomic update to nested document or child document through SolrJ The missing underscore is a documentation bug, because it was not escaped the second time and the asciidoc chewed it up as an bold/italic indicator. The declaration and references should match. I am not sure about the code. I hope so

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Alexandre Rafalovitch
t; > > > > > > > On Thu, Sep 17, 2020 at 12:01 PM Alexandre Rafalovitch < > > arafa...@gmail.com> > > > wrote: > > > > > > > Can you double-check your schema to see if you have all the fields > > > > required to support nest

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Pratik Patel
re Rafalovitch < > arafa...@gmail.com> > > wrote: > > > > > Can you double-check your schema to see if you have all the fields > > > required to support nested documents. You are supposed to get away > > > with just _root_, but really you should also includ

Re: Doing what does using SolrJ API

2020-09-17 Thread Steven White
; > > >> On Sep 17, 2020, at 10:23 AM, Alexandre Rafalovitch > wrote: > >> > >> Solr has a whole pipeline that you can run during document ingesting > before > >> the actual indexing happens. It is called Update Request Processor (URP) > >> and i

Re: Handling failure when adding docs to Solr using SolrJ

2020-09-17 Thread Erick Erickson
I recommend _against_ issuing explicit commits from the client, let your solrconfig.xml autocommit settings take care of it. Make sure either your soft or hard commits open a new searcher for the docs to be searchable. I’ll bend a little bit if you can _guarantee_ that you only ever have one index

Re: Doing what does using SolrJ API

2020-09-17 Thread Erick Erickson
t; the actual indexing happens. It is called Update Request Processor (URP) >> and is defined in solrconfig.xml or in an override file. Obviously, since >> you are indexing from SolrJ client, you have even more flexibility, but it >> is good to know about anyway. >>

Re: Doing what does using SolrJ API

2020-09-17 Thread Walter Underwood
you are indexing from SolrJ client, you have even more flexibility, but it > is good to know about anyway. > > You can read all about it at: > https://lucene.apache.org/solr/guide/8_6/update-request-processors.html and > see the extensive list of processors you can leverage. The

Re: Doing what does using SolrJ API

2020-09-17 Thread Alexandre Rafalovitch
Solr has a whole pipeline that you can run during document ingesting before the actual indexing happens. It is called Update Request Processor (URP) and is defined in solrconfig.xml or in an override file. Obviously, since you are indexing from SolrJ client, you have even more flexibility, but it

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Alexandre Rafalovitch
est_path_ > > field. > > > > See: > > https://lucene.apache.org/solr/guide/8_5/indexing-nested-documents.html#indexing-nested-documents > > > > Regards, > >Alex. > > > > On Wed, 16 Sep 2020 at 13:28, Pratik Patel wrote: > > > >

Re: Doing what does using SolrJ API

2020-09-17 Thread Steven White
Sep 16, 2020, at 9:31 PM, Steven White > > wrote: > > > > > > > > Hi everyone, > > > > > > > > I figured it out. It is as simple as creating a List and > using > > > > that as the value part for SolrInputDocument.addField

Handling failure when adding docs to Solr using SolrJ

2020-09-17 Thread Steven White
Hi everyone, I'm trying to figure out when and how I should handle failures that may occur during indexing. In the sample code below, look at my comment and let me know what state my index is in when things fail: SolrClient solrClient = new HttpSolrClient.Builder(url).build(); solrClient.

Re: Doing what does using SolrJ API

2020-09-17 Thread Erick Erickson
alue part for SolrInputDocument.addField() API. > > > > > > Thanks, > > > > > > Steven > > > > > > > > > On Wed, Sep 16, 2020 at 9:13 PM Steven White > > wrote: > > > > > >> Hi everyone, > > >> > > >> I want to avoid creating a > >> source="OneFieldOfMany"/> in my schema (there will be over 1000 of > them > > and > > >> maybe more so managing it will be a pain). Instead, I want to use > SolrJ > > >> API to do what does. Any example of how I can do this? > If > > >> there is an example online, that would be great. > > >> > > >> Thanks in advance. > > >> > > >> Steven > > >> > > > > >

Re: Doing what does using SolrJ API

2020-09-17 Thread Steven White
; that as the value part for SolrInputDocument.addField() API. > > > > Thanks, > > > > Steven > > > > > > On Wed, Sep 16, 2020 at 9:13 PM Steven White > wrote: > > > >> Hi everyone, > >> > >> I want to avoid creating a &g

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Pratik Patel
> > Regards, >Alex. > > On Wed, 16 Sep 2020 at 13:28, Pratik Patel wrote: > > > > Hello Everyone, > > > > I am trying to update a field of a child document using atomic updates > > feature. I am using solr and solrJ version 8.5.0 > > > >

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Alexandre Rafalovitch
cument using atomic updates > feature. I am using solr and solrJ version 8.5.0 > > I have ensured that my schema satisfies the conditions for atomic updates > and I am able to do atomic updates on normal documents but with nested > child documents, I am getting a Null Pointer Exception

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread pratik@semandex
Following are the approaches I have tried so far and both results in NPE. *approach 1 TestChildPOJO testChildPOJO = new TestChildPOJO().cId( "c1_child1" ) .conceptid( "c1" )

Re: Doing what does using SolrJ API

2020-09-17 Thread Erick Erickson
, > > Steven > > > On Wed, Sep 16, 2020 at 9:13 PM Steven White wrote: > >> Hi everyone, >> >> I want to avoid creating a > source="OneFieldOfMany"/> in my schema (there will be over 1000 of them and >> maybe more so managing it will

Re: Doing what does using SolrJ API

2020-09-16 Thread Steven White
uot;/> in my schema (there will be over 1000 of them and > maybe more so managing it will be a pain). Instead, I want to use SolrJ > API to do what does. Any example of how I can do this? If > there is an example online, that would be great. > > Thanks in advance. > > Steven >

Doing what does using SolrJ API

2020-09-16 Thread Steven White
Hi everyone, I want to avoid creating a in my schema (there will be over 1000 of them and maybe more so managing it will be a pain). Instead, I want to use SolrJ API to do what does. Any example of how I can do this? If there is an example online, that would be great. Thanks in advance

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-16 Thread Pratik Patel
p 16, 2020 at 1:27 PM Pratik Patel wrote: > Hello Everyone, > > I am trying to update a field of a child document using atomic updates > feature. I am using solr and solrJ version 8.5.0 > > I have ensured that my schema satisfies the conditions for atomic updates > and I am able to d

NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-16 Thread Pratik Patel
Hello Everyone, I am trying to update a field of a child document using atomic updates feature. I am using solr and solrJ version 8.5.0 I have ensured that my schema satisfies the conditions for atomic updates and I am able to do atomic updates on normal documents but with nested child documents

SolrJ and AWS help!

2020-09-15 Thread Dhara Patel
Hi, I’m a student working on a personal project that uses SolrJ to search a database using a solr core that lives on an AWS instance. Currently, I am using EmbeddedSolrServer() to initialize a Solr core. CoreContainer.Initializer initializer = new CoreContainer.Initializer(); CoreContainer

Re: Solr 8.6.1: Can't round-trip nested document from SolrJ

2020-08-24 Thread Alexandre Rafalovitch
th handling. That's not what Solr does for > > string class (tested). Is that a known issue? > > > > https://github.com/arafalov/SolrJTest/blob/master/src/com/solrstart/solrj/Main.java#L88-L89 > > Not sure about this. Maybe we might need to check in Dev list or Slack &

Re: Solr 8.6.1: Can't round-trip nested document from SolrJ

2020-08-23 Thread Munendra S N
d return > type and having multi-path handling. That's not what Solr does for > string class (tested). Is that a known issue? > > https://github.com/arafalov/SolrJTest/blob/master/src/com/solrstart/solrj/Main.java#L88-L89 Not sure about this. Maybe we might need to check in Dev list

Re: Solr 8.6.1: Can't round-trip nested document from SolrJ

2020-08-23 Thread Alexandre Rafalovitch
means the query code has to be a lot more careful about checking field return type and having multi-path handling. That's not what Solr does for string class (tested). Is that a known issue? https://github.com/arafalov/SolrJTest/blob/master/src/com/solrstart/solrj/Main.java#L88-L89 If I s

Re: Solr 8.6.1: Can't round-trip nested document from SolrJ

2020-08-22 Thread Munendra S N
Hi Alex, Currently, Fixing the documentation for nested docs is under progress. More context is available in this JIRA - https://issues.apache.org/jira/browse/SOLR-14383. https://github.com/arafalov/SolrJTest/blob/master/src/com/solrstart/solrj/Main.java The child doc transformer needs to be

Solr 8.6.1: Can't round-trip nested document from SolrJ

2020-08-22 Thread Alexandre Rafalovitch
Hello, I am trying to get up to date with both SolrJ and Nested Document implementation and not sure where I am failing with a basic test (https://github.com/arafalov/SolrJTest/blob/master/src/com/solrstart/solrj/Main.java). I am using Solr 8.6.1 with a core created with bin/solr create -c solrj

Re: Solrj client 8.6.0 issue special characters in query

2020-08-07 Thread Chris Hostetter
: Hmm, setting -Dfile.encoding=UTF-8 solves the problem. I have to now check : which component of the application screws it up, but at the moment I do NOT : believe it is related to Solrj. You can use the "forbidden-apis" project to analyze your code and look for uses of APIs that dep

Re: Solrj client 8.6.0 issue special characters in query

2020-08-07 Thread Andy Webb
wrote: > Hmm, setting -Dfile.encoding=UTF-8 solves the problem. I have to now check > which component of the application screws it up, but at the moment I do NOT > believe it is related to Solrj. > > On Fri, Aug 7, 2020 at 11:53 AM Jörn Franke wrote: > > > Dear all, > >

Re: Solrj client 8.6.0 issue special characters in query

2020-08-07 Thread Jörn Franke
Hmm, setting -Dfile.encoding=UTF-8 solves the problem. I have to now check which component of the application screws it up, but at the moment I do NOT believe it is related to Solrj. On Fri, Aug 7, 2020 at 11:53 AM Jörn Franke wrote: > Dear all, > > I have the following issues. I hav

Solrj client 8.6.0 issue special characters in query

2020-08-07 Thread Jörn Franke
Dear all, I have the following issues. I have a Solrj Client 8.6 (but it happens also in previous versions), where I execute, for example, the following query: Jörn If I look into Solr Admin UI it finds all the right results. If I use Solrj client then it does not find anything. Further

Re: solrj - get metrics from all nodes

2020-07-02 Thread ChienHuaWang
Thanks for Jan's response. I tried to set this "nodes" parameter by ModifiableSolrParams. But the null is return from GenericSolrRequest. Could anyone advise the best approach to setup this parameter for multiple nodes? Thanks, Chien -- Sent from: https://lucene.472066.n3.nabble.com/Solr-Us

Re: solrj - get metrics from all nodes

2020-06-30 Thread Jan Høydahl
Use nodes=, not node= > 30. jun. 2020 kl. 02:02 skrev ChienHuaWang : > > Hi Jan, > > Thanks for the response. > Could you please share more detail how you request the metric with multiple > nodes same time? > I do something as below, but only get one node info, the data I'm interested > most is,

Re: solrj - get metrics from all nodes

2020-06-30 Thread ChienHuaWang
Hi Jan, Thanks for the response. Could you please share more detail how you request the metric with multiple nodes same time? I do something as below, but only get one node info, the data I'm interested most is, ex: CONTAINER.fs.totalSpace, CONTAINER.fs.usableSpace. etc.. solr/admin/metrics?grou

Re: solrj - get metrics from all nodes

2020-06-29 Thread Jan Høydahl
The admin UI does this my requesting &nodes=,,… You will get a master response with each sub response as key:value pairs. The list of node_names can be found in live_nodes in CLUSTERSTATUS api. Jan > 27. jun. 2020 kl. 02:09 skrev ChienHuaWang : > > For people who is also looking for the solution

Re: solrj - get metrics from all nodes

2020-06-27 Thread ChienHuaWang
For people who is also looking for the solution - you can append "node=node_name" in metrics request to get specific data of node. If anyone know how to get the data if all the nodes together, please kindly share, thanks. Regards, Chien -- Sent from: https://lucene.472066.n3.nabble.com/Solr-U

Re: solrj - get metrics from all nodes

2020-06-25 Thread ChienHuaWang
I observed the exactly same thing - the metrics for only one node. Looking for the solution to get the metrics of all the nodes. Could anyone advice? Thanks, Chien -- Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Gettings interestingTerms from solr.MoreLikeThisHandler using SolrJ

2020-06-19 Thread Shawn Heisey
n show you how to parse it with SolrJ. I don't have easy access to production Solr servers, so it's a little difficult for me to try it out myself. Thanks, Shawn

Gettings interestingTerms from solr.MoreLikeThisHandler using SolrJ

2020-06-18 Thread Zander, Sebastian
mmand in browser http://localhost:8983/solr/ecom/mlt?q=aid:1 It returns with 10 docs in his response and a list of interestingTerms. Running the same via solrj, I can't find the interestingTerms. I setup my SolrQuery like this: SolrQuery sq = new SolrQuery(); sq.setRequestHandler("/mlt

RE: Timeout issue while doing update operations from clients (using SolrJ)

2020-06-12 Thread Kommu, Vinodh K.
hile doing update operations from clients (using SolrJ) We are getting following socket timeout exception during this error. Any idea on this? ERROR (updateExecutor-3-thread-1392-processing-n:hostname:1100_solr x:TestCollection_shard6_replica_n10 c:TestCollection s:shard6 r:core_no

RE: Timeout issue while doing update operations from clients (using SolrJ)

2020-06-11 Thread Kommu, Vinodh K.
while doing update operations from clients (using SolrJ) We are getting following socket timeout exception during this error. Any idea on this? ERROR (updateExecutor-3-thread-1392-processing-n:hostname:1100_solr x:TestCollection_shard6_replica_n10 c:TestCollection s:shard6 r:core_node13

RE: Timeout issue while doing update operations from clients (using SolrJ)

2020-06-10 Thread Kommu, Vinodh K.
solr-user@lucene.apache.org Subject: Timeout issue while doing update operations from clients (using SolrJ) Hi, Need some help in fixing intermittent timeout issue please. Recently we came across this timeout issue during QA performance testing when a streaming expression query which runs on a la

Timeout issue while doing update operations from clients (using SolrJ)

2020-06-10 Thread Kommu, Vinodh K.
Hi, Need some help in fixing intermittent timeout issue please. Recently we came across this timeout issue during QA performance testing when a streaming expression query which runs on a larger set of data (~60-80 million) from a client using solrJ, was timing out exactly in 2mins. Later this

solrj - get metrics from all nodes

2020-06-03 Thread lstusr 5u93n4
Hi All, I'm attempting to connect to the metrics api in solrj to query metrics from my cluster. Using the CloudSolrClient, I get routed to one node, and get metrics only from that node. I'm building my request like this: GenericSolrRequest req = new GenericSolrRequest(METHOD.GE

Re: SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled

2020-05-02 Thread Samuel Garcia Martinez
/SOLR-14457 From: Jason Gerlowski Sent: Wednesday, April 22, 2020 4:43 PM To: solr-user@lucene.apache.org Subject: Re: SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled Hi Samuel, Thanks for the very detailed description of the problem here

Re: SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled

2020-04-22 Thread Jason Gerlowski
comunique por esta misma vía, proceda a su eliminación y se abstenga de > utilizarlo en modo alguno. > If you receive this message by error, please notify the sender by return > e-mail and delete it. Its use is forbidden. > > > > ____ > From: Samuel

Re: SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled

2020-04-13 Thread Samuel Garcia Martinez
sender by return e-mail and delete it. Its use is forbidden. From: Samuel Garcia Martinez Sent: Monday, April 13, 2020 10:08:36 PM To: solr-user@lucene.apache.orG Subject: SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled Hi! Today, I

SolrJ connection leak with SolrCloud and Jetty Gzip compression enabled

2020-04-13 Thread Samuel Garcia Martinez
rward the request to a Solr Node that actually can perform the query, the response headers are added incorrectly to the client response, causing the SolrJ client to fail and to never release the connection back to the pool. To simplify the case, let's try to start from the following repr

Queries on adding headers to solrj Request

2020-04-13 Thread dinesh naik
Hi all, We are planning to add security to Solr using . For this we are adding few information in the headers of each SolrJ Request. These request will be intercepted by some application (proxy) in the Solr VM and then route it to Solr ( Considering Solr port as 8983 ) . Could you please answer

Re: how to add multiple value for a filter query in Solrj

2020-03-24 Thread Erick Erickson
are other encodings. 2> you include double quotes, which can change things to be phrase queries. Looking at the debug version would have helped you pinpoint these. > On Mar 24, 2020, at 5:34 AM, Szűcs Roland wrote: > > Hi All, > > I use Solr 8.4.1 and the latest solrj client. >

Re: how to add multiple value for a filter query in Solrj

2020-03-24 Thread Szűcs Roland
inal Message- > From: Szűcs Roland > Sent: Tuesday, March 24, 2020 11:35 AM > To: solr-user@lucene.apache.org > Subject: how to add multiple value for a filter query in Solrj > > Hi All, > > I use Solr 8.4.1 and the latest solrj client. > There is a field let's which c

RE: how to add multiple value for a filter query in Solrj

2020-03-24 Thread Raboah, Avi
how to add multiple value for a filter query in Solrj Hi All, I use Solr 8.4.1 and the latest solrj client. There is a field let's which can have 3 different values. If I use the admin UI, I write to the fq the following: filterName:"value1" filterName:"value2" and it is

how to add multiple value for a filter query in Solrj

2020-03-24 Thread Szűcs Roland
Hi All, I use Solr 8.4.1 and the latest solrj client. There is a field let's which can have 3 different values. If I use the admin UI, I write to the fq the following: filterName:"value1" filterName:"value2" and it is working as expected. If I use solrJ SolrQuery.addFilte

Antw: Re: SolrJ 8.2: Too many Connection evictor threads

2020-02-11 Thread Andreas Kahl
;> Are you running a 5x SolrJ client against an 8x server? There’s no guarantee at all that that would work (or vice-versa for that matter). Most generally, SolrJ clients should be able to work with version X-1, but X-3 is unsupported. Best, Erick > On Feb 11, 2020, at 6:36 AM, Andreas Kahl

Re: SolrJ 8.2: Too many Connection evictor threads

2020-02-11 Thread Erick Erickson
Are you running a 5x SolrJ client against an 8x server? There’s no guarantee at all that that would work (or vice-versa for that matter). Most generally, SolrJ clients should be able to work with version X-1, but X-3 is unsupported. Best, Erick > On Feb 11, 2020, at 6:36 AM, Andreas Kahl wr

SolrJ 8.2: Too many Connection evictor threads

2020-02-11 Thread Andreas Kahl
SolrClient or Http2SolrClient? Is another version of SolrJ advisable? Thanks & Best Regards Andreas

Re: Atomic solrj update

2019-12-15 Thread Paras Lehana
update of 50M data in a collection from CSV > using > > Atomic script(solrj).But it is taking 2 hrs for 1M records.is there > anyway i > > can speed up my update. > > How many documents are you sending in one request? > > > Using HTTPClient to establish connection and a

Re: Atomic solrj update

2019-12-12 Thread Shawn Heisey
On 12/12/2019 10:00 PM, Prem wrote: I am trying to partially update of 50M data in a collection from CSV using Atomic script(solrj).But it is taking 2 hrs for 1M records.is there anyway i can speed up my update. How many documents are you sending in one request? Using HTTPClient to establish

Re: Atomic solrj update

2019-12-12 Thread Jörn Franke
partially update of 50M data in a collection from CSV using > Atomic script(solrj).But it is taking 2 hrs for 1M records.is there anyway i > can speed up my update. > Using HTTPClient to establish connection and also i am validating whether > the particular document is available in

Atomic solrj update

2019-12-12 Thread Prem
I am trying to partially update of 50M data in a collection from CSV using Atomic script(solrj).But it is taking 2 hrs for 1M records.is there anyway i can speed up my update. Using HTTPClient to establish connection and also i am validating whether the particular document is available in

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

2019-11-06 Thread Jörn Franke
I created a JIRA for this: https://issues.apache.org/jira/browse/SOLR-13894 On Wed, Nov 6, 2019 at 10:45 AM Jörn Franke wrote: > I have checked now Solr 8.3 server in admin UI. Same issue. > > Reproduction: > select(search(testcollection,q=“test”,df=“Default”,defType=“edismax”,fl=“id”, > qt=“/ex

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

2019-11-06 Thread Jörn Franke
I have checked now Solr 8.3 server in admin UI. Same issue. Reproduction: select(search(testcollection,q=“test”,df=“Default”,defType=“edismax”,fl=“id”, qt=“/export”, sort=“id asc”),id,if(eq(1,1),Y,N) as found) In 8.3 it returns only the id field. In 8.2 it returns id,found field. Since found is

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

2019-11-05 Thread Jörn Franke
Thanks I will check and come back to you. As far as I remember (but have to check) the queries generated by Solr were correct Just to be clear the same thing works with Solr 8.2 server and Solr 8.2 client. It show the odd behaviour with Solr 8.2 server and Solr 8.3 client. > Am 05.11.2019 um 14

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

2019-11-05 Thread Joel Bernstein
I'll probably need some more details. One thing that's useful is to look at the logs and see the underlying Solr queries that are generated. Then try those underlying queries against the Solr index and see what comes back. If you're not seeing the fields with the plain Solr queries then we know it'

Re: Delete documents from the Solr index using SolrJ

2019-11-05 Thread Erick Erickson
wly added > docs. I hope this is possible, but how ? > Because, currently I am using SolrJ and it re-index complete data each time. > > -Original Message- > From: Peter Lancaster [mailto:peter.lancas...@findmypast.com] > Sent: 04 November 2019 21:35 > To: solr-user@luc

RE: Delete documents from the Solr index using SolrJ

2019-11-05 Thread Khare, Kushal (MIND)
docs are added, instead I want it to update it, that is index only newly added docs. I hope this is possible, but how ? Because, currently I am using SolrJ and it re-index complete data each time. -Original Message- From: Peter Lancaster [mailto:peter.lancas...@findmypast.com] Sent: 04

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Erick Erickson
com] >> Sent: 04 November 2019 20:04 >> To: solr-user@lucene.apache.org >> Subject: Re: Delete documents from the Solr index using SolrJ >> >> when you add a new document using the same "id" value as another it just >> over writes it >> >&

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Walter Underwood
20:04 > To: solr-user@lucene.apache.org > Subject: Re: Delete documents from the Solr index using SolrJ > > 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) < > kus

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 perfo

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

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread David Hastings
-user@lucene.apache.org > Subject: Re: Delete documents from the Solr index using SolrJ > > 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) < >

  1   2   3   4   5   6   7   8   9   10   >