Re: Help required with SolrJ

2018-02-19 Thread Aakanksha Gupta
q=*:*&fq=%7B!geofilt%7D&sfield=latlong&pt=-6.08165,145.8612430&d=100&wt=json&fq=timestamp:[151890840%20TO%20151891200]&fl=*,_dist_:geodist()> >> >> But I'm not sure how to build the SolrJ equivalent of this query using >> SolrQuery.

Re: Help required with SolrJ

2018-02-19 Thread Shawn Heisey
On 2/19/2018 6:44 AM, Aakanksha Gupta wrote: http://localhost:8983/solr/geoloc/select/?q=*:*&fq={!geofilt}&sfield=latlong&pt=-6.08165,145.8612430&d=100&wt=json&fq=timestamp:[151890840%20TO%20151891200]&fl=*,_dist_:geodist() But I'm not sure how to b

Help required with SolrJ

2018-02-19 Thread Aakanksha Gupta
Hi all, I'm looking for some help with SolrJ for querying spatial data. I have the following URL query working fine, where it returns the results which are within 100km radius from the 'pt' provided in the URL and where the timestamp field is between the two timestamps provided in t

Re: MODIFYCOLLECTION via Solrj

2018-02-07 Thread Erick Erickson
Yeah, sometimes the sugar-methods/classes in SolrJ lag a bit behind the collections API. but at root about all these classes do is create a ModifiableSolrParams with all the params you'd specify and make an http call via the AsyncCollectionAdminRequest.process command last I knew. Best,

MODIFYCOLLECTION via Solrj

2018-02-07 Thread Hendrik Haddorp
Hi, I'm unable to find how I can do a MODIFYCOLLECTION via Solrj. I would like to change the replication factor of a collection but can't find it in the Solrj API. Is that not supported? regards, Hendrik

Re: Using SolrJ for digest authentication

2018-02-05 Thread ddramireddy
atable" or not. This validation is getting failed and following error is thrown. "org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity." I am able to make POST call by directly calling apache http client library with the fol

Re: Updating a single field using Solrj ContentStreamUpdateRequest

2018-02-01 Thread Joris De Smedt
Thanks I think we'll go for extractOnly cause using a recent version of Tika causes to many dependency issues. On Thu, Feb 1, 2018 at 12:25 PM, Emir Arnautović < emir.arnauto...@sematext.com> wrote: > Hi Joris, > I doubt that you can do that. That would require extracting request > handler to sup

Re: Updating a single field using Solrj ContentStreamUpdateRequest

2018-02-01 Thread Emir Arnautović
Hi Joris, I doubt that you can do that. That would require extracting request handler to support incremental updating and I don’t thing it does. In order to update existing doc, you would have to extract content and send it as incrementa update request. You can still use extracting handler to ex

Updating a single field using Solrj ContentStreamUpdateRequest

2018-02-01 Thread Joris De Smedt
Hi I'd like to update a single field of an existing document with the content of a file. My current setup looks like this: final File file = new File("path to file"); ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract"); req.addContentStream(new ContentStrea

Solrj + spring data: Indexing file body + own fields

2018-01-31 Thread Joris De Smedt
Hi I'm using Solrj 6.6.1 found in spring-data-solr 3.0.3.RELEASE, solr is 7.2.1 . I'm currently able to upload solrDocument via spring-data but would like to add the equivalent to tika new AutoDetectParser().parse(stream, new BodyContentHandler(-1), new MetaData()) as a con

Re: Using SolrJ for digest authentication

2018-01-31 Thread Rick Leir
Eddy Maybe your request is getting through twice. Check your logs to see. Cheers -- Rick On January 31, 2018 5:59:53 AM EST, ddramireddy wrote: >We are currently deploying Solr in war mode(Yes, recommendation is not >war. >But this is something I can't change now. Planned for future). I am >setti

Using SolrJ for digest authentication

2018-01-31 Thread ddramireddy
We are currently deploying Solr in war mode(Yes, recommendation is not war. But this is something I can't change now. Planned for future). I am setting authentication for solr. As Solr provided basic authentication is not working in Solr 6.4.2, I am setting up digest authentication in tomcat for So

Re: SolrJ with Async Http Client

2018-01-08 Thread Emir Arnautović
it? I have come across one such project > <https://github.com/inoio/solrs> but wondering is there anything provided > by solrj? > > Thanks

Re: SolrJ with Async Http Client

2018-01-05 Thread Erick Erickson
.org/jira/browse/SOLR-7442 > > HTTPClient will have http/2 support in version 5.0 -- but only in the > async client, not the client that SolrJ currently uses. > > Parts of the 5.0 version are in alpha at the moment, one part is in > beta. I do not have any information about when

Re: SolrJ with Async Http Client

2018-01-05 Thread Shawn Heisey
, not the client that SolrJ currently uses. Parts of the 5.0 version are in alpha at the moment, one part is in beta.  I do not have any information about when it will be fully released as a stable version.  We can't fully implement a new SolrJ that uses the new HC version until they officia

Re: SolrJ with Async Http Client

2018-01-05 Thread Gus Heck
NAK AGRAWAL > wrote: > > > > Yes, I am talking about event driven way of calling solr, so that I can > > write pure async web service. Does SolrJ provides support for > non-blocking > > calls? > > > > On Wed, Jan 3, 2018 at 6:22 PM, Hendrik Haddorp > &g

Re: SolrJ with Async Http Client

2018-01-03 Thread Walter Underwood
n 3, 2018, at 5:11 AM, RAUNAK AGRAWAL wrote: > > Yes, I am talking about event driven way of calling solr, so that I can > write pure async web service. Does SolrJ provides support for non-blocking > calls? > > On Wed, Jan 3, 2018 at 6:22 PM, Hendrik Haddorp > wrote: > >&

Re: SolrJ with Async Http Client

2018-01-03 Thread Joel Bernstein
talking about event driven way of calling solr, so that I can > write pure async web service. Does SolrJ provides support for non-blocking > calls? > > On Wed, Jan 3, 2018 at 6:22 PM, Hendrik Haddorp > wrote: > > > There is asynchronous and non-blocking. If I use 100 threads to

Re: SolrJ with Async Http Client

2018-01-03 Thread RAUNAK AGRAWAL
Yes, I am talking about event driven way of calling solr, so that I can write pure async web service. Does SolrJ provides support for non-blocking calls? On Wed, Jan 3, 2018 at 6:22 PM, Hendrik Haddorp wrote: > There is asynchronous and non-blocking. If I use 100 threads to perform > ca

Re: SolrJ with Async Http Client

2018-01-03 Thread Hendrik Haddorp
There is asynchronous and non-blocking. If I use 100 threads to perform calls to Solr using the standard Java HTTP client or SolrJ I block 100 threads even if I don't block my program logic threads by using async calls. However if I perform those HTTP calls using a non-blocking HTTP c

Re: SolrJ with Async Http Client

2018-01-02 Thread Rick Leir
e tried calling solr in non-blocking mode or is >there is a way to do it? I have come across one such project ><https://github.com/inoio/solrs> but wondering is there anything >provided >by solrj? > >Thanks -- Sorry for being brief. Alternate email is rickleir at yahoo dot com

Re: SolrJ with Async Http Client

2018-01-02 Thread Gus Heck
o/solrs> but wondering is there anything provided > by solrj? > > Thanks > -- http://www.the111shift.com

SolrJ with Async Http Client

2018-01-02 Thread RAUNAK AGRAWAL
ded by solrj? Thanks

Re: SolrJ DocCollection is missing config name

2017-11-12 Thread Hendrik Haddorp
An option is actually to do an explicit ClusterStatus.getClusterStatus().process(solr, collectionName) request and then get the config set name out of the result. This is a bit cumbersome but works. On 12.11.2017 19:54, Hendrik Haddorp wrote: Hi, the SolrJ DocCollection object seems to

SolrJ DocCollection is missing config name

2017-11-12 Thread Hendrik Haddorp
Hi, the SolrJ DocCollection object seems to contain all information from the cluster status except the name of the config set. Is that a bug or on purpose? The reason might be that everything in the DocCollection object originates from the state.json while the config set name is stored in

Re: Atomic Updates with SolrJ

2017-11-10 Thread Martin Keller
arkar" : Hi Martin, I tested the same application SolrJ code on my system, it worked just fine on Solr 6.6.x. My Solrclient is "CloudSolrJClient", which I think doesn't make any difference. Can you show the response and field declarations if you are cont

Re: Atomic Updates with SolrJ

2017-11-09 Thread Amrit Sarkar
Hi Martin, I tested the same application SolrJ code on my system, it worked just fine on Solr 6.6.x. My Solrclient is "CloudSolrJClient", which I think doesn't make any difference. Can you show the response and field declarations if you are continuously facing the issue. Amri

Atomic Updates with SolrJ

2017-11-09 Thread Martin Keller
Hello, I’m trying to Update a field in a document via SolrJ. Unfortunately, while the field itself is updated correctly, values of some other fields are removed. The code looks like this: SolrInputDocument updateDoc = new SolrInputDocument(); updateDoc.addField("id", "1234"

RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-10-19 Thread Markus Jelsma
> Sent: Thursday 19th October 2017 13:45 > To: solr-user@lucene.apache.org > Subject: RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace > > Hello, > > We are having this problem again, now it affects the front-end too, the logs > are littered with Zookeeper co

RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-10-19 Thread Markus Jelsma
Hello, We are having this problem again, now it affects the front-end too, the logs are littered with Zookeeper connection log lines at WARN level. Is it expected that i have to deal with this problem myself? Isn't SolrJ or HTTPClient even going to guarantee me that they will handle under

Re: solrj howto update documents with expungeDeletes

2017-10-04 Thread Emir Arnautović
Hi Bernd, I guess it is not exposed in Solrj. Maybe for good reason - it is rarely good to call it. You might better set reclaimDeletesWeight in your merge config and keep number of deleted docs under control that way. Regards, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection

Re: solrj howto update documents with expungeDeletes

2017-10-04 Thread Erick Erickson
ing. >> >> HTH, >> Emir >> -- >> Monitoring - Log Management - Alerting - Anomaly Detection >> Solr & Elasticsearch Consulting Support Training - http://sematext.com/ >> >> >> >>> On 4 Oct 2017, at 10:38, Bernd Fehling >>> wrote: &

Re: solrj howto update documents with expungeDeletes

2017-10-04 Thread Bernd Fehling
t 10:38, Bernd Fehling >> wrote: >> >> A simple question about solrj (Solr 6.4.2), >> >> how to update documents with expungeDeletes true/false? >> >> In org.apache.solr.client.solrj.SolrClient there are many add, >> commit, delete, optimize, ... b

Re: solrj howto update documents with expungeDeletes

2017-10-04 Thread Emir Arnautović
. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 4 Oct 2017, at 10:38, Bernd Fehling wrote: > > A simple question about solrj (Solr 6.4.2), > > how to update documents with

solrj howto update documents with expungeDeletes

2017-10-04 Thread Bernd Fehling
A simple question about solrj (Solr 6.4.2), how to update documents with expungeDeletes true/false? In org.apache.solr.client.solrj.SolrClient there are many add, commit, delete, optimize, ... but no "update". What is the best way to "update"? - just "add" the

Re: streaming with SolrJ

2017-09-28 Thread Joel Bernstein
} >> >>System.out.println("Total tuples retunred "+tuples.size()); >> >> >> --- >> private static String getClause() { >> String clause = "select(search(gettingstarted,\n" + >> "q=*:* NOT

Re: streaming with SolrJ

2017-09-28 Thread Hendrik Haddorp
t;select(search(gettingstarted,\n" + "q=*:* NOT personal_email_s:*,\n" + "fl=\"id,business_email_s\",\n" + "sort=\"business_email_s asc\"),\n" + "id,\n" + "busi

Re: streaming with SolrJ

2017-09-28 Thread Susheel Kumar
println("Total tuples retunred "+tuples.size()); --- private static String getClause() { String clause = "select(search(gettingstarted,\n" + "q=*:* NOT personal_email_s:*,\n" + "fl=\"id,business_email_s\",\n&quo

streaming with SolrJ

2017-09-28 Thread Hendrik Haddorp
Hi, I'm trying to use the streaming API via SolrJ but have some trouble with the documentation and samples. In the reference guide I found the below example in http://lucene.apache.org/solr/guide/6_6/streaming-expressions.html. Problem is that "withStreamFunction" does no

Re: DocValues, Long and SolrJ

2017-09-27 Thread Emir Arnautović
> > -Original Message- > From: Emir Arnautović [mailto:emir.arnauto...@sematext.com] > Sent: Tuesday, 26 September 2017 8:49 p.m. > To: solr-user@lucene.apache.org > Subject: Re: DocValues, Long and SolrJ > > Hi Phil, > Are you saying that you get this error when you

RE: DocValues, Long and SolrJ

2017-09-26 Thread Phil Scadden
ception ex) { } // start the index rebuild -Original Message- From: Phil Scadden [mailto:p.scad...@gns.cri.nz] Sent: Wednesday, 27 September 2017 10:04 a.m. To: solr-user@lucene.apache.org Subject: RE: DocValues, Long and SolrJ I get it after I have deleted the index with a delete query and start

RE: DocValues, Long and SolrJ

2017-09-26 Thread Phil Scadden
[mailto:emir.arnauto...@sematext.com] Sent: Tuesday, 26 September 2017 8:49 p.m. To: solr-user@lucene.apache.org Subject: Re: DocValues, Long and SolrJ Hi Phil, Are you saying that you get this error when you create fresh core/collection? This sort of errors are usually related to schema being

Re: DocValues, Long and SolrJ

2017-09-26 Thread Emir Arnautović
Hi Phil, Are you saying that you get this error when you create fresh core/collection? This sort of errors are usually related to schema being changed after some documents being indexed. Thanks, Emir > On 25 Sep 2017, at 23:42, Phil Scadden wrote: > > I ran into a problem with indexing docume

DocValues, Long and SolrJ

2017-09-25 Thread Phil Scadden
I ran into a problem with indexing documents which I worked around by changing data type, but I am curious as to how the setup could be made to work. Solr 6.5.1 - Field type Long, multivalued false, DocValues. In indexing with Solr, I set the value of field with: Long accessLevel

Re: SolrJ Java API examples

2017-09-17 Thread Furkan KAMACI
Hi Vishal, You can also check here: https://lucene.apache.org/solr/guide/6_6/using-solrj.html#using-solrj You can get enough information about how to use it. Kind Regards, Furkan KAMACI On Thu, Sep 14, 2017 at 1:25 PM, Leonardo Perez Pulido < leoperezpul...@gmail.com> wrote: > Hi, &

Re: SolrJ Java API examples

2017-09-14 Thread Leonardo Perez Pulido
Hi, This may help: https://github.com/leoperezpulido/lucene-solr/tree/master/solr/solrj/src/test/org/apache/solr/client/solrj Regards. On Thu, Sep 14, 2017 at 4:21 AM, Vishal Srivastava wrote: > Hi, > I'm a beginner at SolrJ , and am currently looking to implement and > integra

SolrJ Java API examples

2017-09-14 Thread Vishal Srivastava
Hi, I'm a beginner at SolrJ , and am currently looking to implement and integrate the same at my current organisation using Java . After a lot of research, I failed to find any good material / examples for SolrJ 's Java library that I could use as reference. Please suggest some goo

Re: Cookies with SOLRJ?

2017-08-04 Thread Shawn Heisey
On 8/4/2017 8:59 AM, Sanders, Marshall (CAI - Atlanta) wrote: > Is there a way to easily set/get a cookie from a solrj request/response or an > example of this someone can share? > > The types of queries our application uses could greatly benefit from > stickying our applicatio

Cookies with SOLRJ?

2017-08-04 Thread Sanders, Marshall (CAI - Atlanta)
Is there a way to easily set/get a cookie from a solrj request/response or an example of this someone can share? The types of queries our application uses could greatly benefit from stickying our application to a specific solr instance and I'd like to read the load balancer cookie and

Re: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Shawn Heisey
external HttpClient is used, the user code would need to shut it down for this to happen. Recent versions of SolrJ are using CloseableHttpClient, which will shut down the connection pool if close() is called. It's looking like this error has happened because the HttpClient object inside the sol

RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Markus Jelsma
times, briefly, very high. Usually very low. These specific checks are executed in order, not concurrently. Thanks, Markus -Original message- > From:Susheel Kumar > Sent: Tuesday 18th July 2017 15:17 > To: solr-user@lucene.apache.org > Subject: Re: SolrJ 6.6.0 Connection pool

Re: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Susheel Kumar
> > To: solr-user@lucene.apache.org > > Subject: Re: SolrJ 6.6.0 Connection pool shutdown now with stack trace > > > > Do you see any errors etc. in solr.log during this time? > > > > On Tue, Jul 18, 2017 at 7:10 AM, Markus Jelsma < > markus.jel...@openind

RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Markus Jelsma
Hello Susheel, No, nothing at all. I've check all six nodes, they are clean. Thanks, Markus -Original message- > From:Susheel Kumar > Sent: Tuesday 18th July 2017 14:30 > To: solr-user@lucene.apache.org > Subject: Re: SolrJ 6.6.0 Connection pool shutdown now

Re: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Susheel Kumar
r.client.solrj.impl.HttpSolrClient.request( > HttpSolrClient.java:268) > at org.apache.solr.client.solrj.impl.LBHttpSolrClient. > doRequest(LBHttpSolrClient.java:447) > ... 24 more > > So, to summarize, we have a program checking presence of documents in Solr > using getById() and we do

RE: SolrJ 6.6.0 Connection pool shutdown now with stack trace

2017-07-18 Thread Markus Jelsma
this exception to bubble up, we want SolrJ to restore the connection pool just as CloudSolrClient would move on to another node if one went down in the mean time. Is this possible? How? Many thanks, Markus -Original message- > From:Markus Jelsma > Sent: Thursday 29th June 2017 16:38

RE: SolrJ 6.6.0 Connection pool shutdown

2017-06-29 Thread Markus Jelsma
e 2017 15:38 > To: solr-user > Subject: Re: SolrJ 6.6.0 Connection pool shutdown > > One thing to check is whether there is a firewall between the client > and the server. They - sometimes - cut the silent connections in the > _middle_ (at the firewall). The usual solution is kee

Re: SolrJ 6.6.0 Connection pool shutdown

2017-06-29 Thread Alexandre Rafalovitch
#x27;ll let it print the stack trace and get back if it happens again. > > Thanks, > Markus > > -Original message- >> From:Shawn Heisey >> Sent: Tuesday 27th June 2017 23:02 >> To: solr-user@lucene.apache.org >> Subject: Re: SolrJ 6.6.0 Connection pool shutdown &

RE: SolrJ 6.6.0 Connection pool shutdown

2017-06-29 Thread Markus Jelsma
t; Sent: Tuesday 27th June 2017 23:02 > To: solr-user@lucene.apache.org > Subject: Re: SolrJ 6.6.0 Connection pool shutdown > > On 6/27/2017 6:50 AM, Markus Jelsma wrote: > > We have a proces checking presence of many documents in a collection, just > > a simple client.g

Re: SolrJ 6.6.0 Connection pool shutdown

2017-06-27 Thread Shawn Heisey
ServerException: > java.lang.IllegalStateException: Connection pool shut down > > Then, as suddenly as it appeared, it's gone again a no longer a problem. I > would expect SolrJ not to throw this but to wait until it the connection > pool, or whatever mechanism is there, to recover. > > Did i

SolrJ 6.6.0 Connection pool shutdown

2017-06-27 Thread Markus Jelsma
suddenly as it appeared, it's gone again a no longer a problem. I would expect SolrJ not to throw this but to wait until it the connection pool, or whatever mechanism is there, to recover. Did i miss a magic parameter for SolrJ? Thanks, Markus

Re: SolrJ - How to add a blocked document without child documents

2017-06-20 Thread Jeffery Yuan
Mikhail Khludnev provided the workaround in https://issues.apache.org/jira/browse/SOLR-6096: So, far the workaround is to nest empty child w/o fields or with id only field. -- It works -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-How-to-add-a-blocked-document

Re: Possible bug in Solrj-6.6.0

2017-06-16 Thread Joel Bernstein
osed > when the application exits. > > > > > > > > > > > > > > > > > > > > > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Fri, Jun 16, 2017 at 2:17 AM, Aman Deep Singh < > amandeep.coo...@gmail.com&

Re: Possible bug in Solrj-6.6.0

2017-06-16 Thread Aman Deep Singh
red by multiple requests and should be closed when the application exits. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Jun 16, 2017 at 2:17 AM, Aman Deep Singh wrote: > Hi, > I think their is a possible bug in Solrj version 6.6.0 ,as streaming is not > workin

Re: Possible bug in Solrj-6.6.0

2017-06-16 Thread Joel Bernstein
tiple requests and should be closed when the application exits. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Jun 16, 2017 at 2:17 AM, Aman Deep Singh wrote: > Hi, > I think their is a possible bug in Solrj version 6.6.0 ,as streaming is not > working > as

Possible bug in Solrj-6.6.0

2017-06-15 Thread Aman Deep Singh
Hi, I think their is a possible bug in Solrj version 6.6.0 ,as streaming is not working as i have a piece of code public Set getAllIds(String requestId, String field) { LOG.info("Now Trying to fetch all the ids from SOLR for request Id {}", requestId); Map props = n

How to achieve ‘splitBy’ in SolrJ?

2017-05-31 Thread prabaharanr
Hi, I am trying index records into solr-5.3.1 using solrj ‘addBeans’, is there a way to specify ‘*splitBy*’ in our POJO ? Here is my data-config.xml field (which helps DB to Search mappings) definition How to achieve this ‘splitBy’ in my POJO ? @Field(value=" search-field") privat

Re: How to handle nested documents in solr (SolrJ)

2017-05-25 Thread Rick Leir
David, The articles by Yonick were written around the time that he and others were developing the features. This one http://yonik.com/solr-nested-objects/ says 5.3 and later. Considering that development and bugfixes spanned several versions, you would do well to test your configuration with

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread David Lee
Hi Rick, Adding to this subject, I do appreciate you pointing us to these articles, but I'm curious about how much of these take into account the latest versions of Solr (ie: +6.5 and 7) given the JSON split capabilities, etc. I know that is just on the indexing side so the searches may be th

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread Erick Erickson
I would ask if you need nested documents at all. If you can denormlize the docs it's often much easier. In your case I can think of several options: 1> just index a separate field for each subject. Solr handles a couple of hundred fields with ease. student id : 123 student name : john maths: 90 Eng

Re: How to handle nested documents in solr (SolrJ)

2017-05-24 Thread Rick Leir
Prasad, Gee, you get confusion from a google search for: nested documents site:mail-archives.apache.org/mod_mbox/lucene-solr-user/ https://www.google.ca/search?safe=strict&q=nested+documents+site%3Amail-archives.apache.org%2Fmod_mbox%2Flucene-solr-user%2F&oq=nested+documents+site%3Amail-a

How to handle nested documents in solr (SolrJ)

2017-05-23 Thread prasad chowdary
Results option . But not able to get the child for parent match. Please help me out in this regard.Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-handle-nested-documents-in-solr-SolrJ-tp4336861.html Sent from the Solr - User mailing list archive at Nabble.com.

Custom RequestHandler with the Solr api (solrj) that makes a query call back to the server

2017-05-18 Thread Jack Java
Hi, I'm looking for some advice on specific issue that is holding us back. I'm trying to create a custom RequestHandler with the Solr api (solrj) that makes a query call back to the server. I'm not finding any good, run-able examples on-line. Possibly I'm approaching this wro

Re: Custom RequestHandler with the Solr api (solrj) that makes a query call back to the server

2017-05-18 Thread Chris Yee
Reformatting for readability: Hi, I'm looking for some advice on specific issue that is holding us back. I'm trying to create a custom RequestHandler with the Solr api (solrj) that makes a query call back to the server. I'm not finding any good, run-able examples of this on-lin

Custom RequestHandler with the Solr api (solrj) that makes a query call back to the server

2017-05-18 Thread Jack Java
Hi,I'm looking for some advice on specific issue that is holding usback. I'mtrying to create a custom RequestHandler with the Solr api (solrj)that makes a query call back to the server. I'mnot finding any good, run-able examples of this on-line. Possibly I'mapproaching th

Re: SolrJ - How to add a blocked document without child documents

2017-05-16 Thread Jeffery Yuan
update the parent document again with some new child documents, it will update Parent2 correctly, but still leave/keep Parent1. This issue is talked in some jiras like https://issues.apache.org/jira/browse/SOLR-6096. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Ho

Re: SolrJ - How to add a blocked document without child documents

2017-05-16 Thread Zheng Lin Edwin Yeo
I workaround this issue by always deleting first, but I am wondering > whether there is better approach. > > Thanks > Jeffery Yuan > > > > > -- > View this message in context: http://lucene.472066.n3. > nabble.com/SolrJ-How-to-add-a-blocked-document-without-child-doc

Re: SolrJ - How to add a blocked document without child documents

2017-05-15 Thread Jeffery Yuan
issue by always deleting first, but I am wondering whether there is better approach. Thanks Jeffery Yuan -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-How-to-add-a-blocked-document-without-child-documents-tp4335006p4335195.html Sent from the Solr - User mailing

Re: SolrJ - How to add a blocked document without child documents

2017-05-15 Thread Damien Kamerman
I can avoid the duplicate parent documents? > How could I add a blocked document without child documents? > > - I can workaround this by delete first before add new documents but the > performance would suffer > > Thanks a lot for your help and response. > > > > > -

SolrJ - How to add a blocked document without child documents

2017-05-13 Thread Jeffery Yuan
ent documents? How could I add a blocked document without child documents? - I can workaround this by delete first before add new documents but the performance would suffer Thanks a lot for your help and response. -- View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-How-to-

Solrj Client Problem - Bad Return type

2017-05-05 Thread Jacob Dunn
Hi. I'm working on a Java application that takes some object metadata and inputs it using Solrj. I'm getting a bad return type error message. Here's my current code: [cid:image004.png@01D2C58B.8A6708E0] And here's the error I'm receiving: [cid:image005.png@01D2C58D.

Re: Issue regarding range faceting inside pivot facets using solrj

2017-04-20 Thread Naman Asati
Minor correction : params.add("f.A.facet.range.gap","8") ; On 20-Apr-2017 5:10 PM, "Naman Asati" wrote: > Hi > > I am using Solr 6.3.0 with Fusion 1.2.8. > > I am having an issue doing range faceting INSIDE the pivot faceting using > the solr-so

Issue regarding range faceting inside pivot facets using solrj

2017-04-20 Thread Naman Asati
Hi I am using Solr 6.3.0 with Fusion 1.2.8. I am having an issue doing range faceting INSIDE the pivot faceting using the solr-solrj-5.0.0.jar. Let us consider 3 fields A, B and C. I want to do a range facet for A and pivot faceting of (B, C, Range facet of A). Code : ModifiableSolrParams

Re: SolrJ and Streaming

2017-04-18 Thread Joe Obernberger
Thank you Joel; exactly what I needed! Just had to change it to use CloudSolrStream instead. Much appreciated! -Joe On 4/18/2017 3:21 PM, Joel Bernstein wrote: Are you trying to send a streaming expression using SolrJ? If you are you can send the expression with the SolrStream. for example

Re: SolrJ and Streaming

2017-04-18 Thread Joel Bernstein
paramsLoc in my last email should be params Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Apr 18, 2017 at 3:21 PM, Joel Bernstein wrote: > Are you trying to send a streaming expression using SolrJ? > > If you are you can send the expression with the SolrStream. for example: &

Re: SolrJ and Streaming

2017-04-18 Thread Joel Bernstein
Are you trying to send a streaming expression using SolrJ? If you are you can send the expression with the SolrStream. for example: params = new ModifiableSolrParams(); params.set("expr", expr); params.set("qt", "/stream"); SolrStream stream = new So

SolrJ and Streaming

2017-04-18 Thread Joe Obernberger
Hi All - any examples of using solrJ and streaming expressions available? Like calling UpdateStream from solrJ? Thank you! -Joe

Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Zheng Lin Edwin Yeo
I'm using Solr 6.4.2. The JARs from SolrJ which I'm using are also from Solr 6.4.2. Regards, Edwin On 18 April 2017 at 08:05, Noble Paul wrote: > I tested this with the > > following code > > SolrRequest req = new QueryRequest(new SolrQue

Re: Using BasicAuth with SolrJ Code

2017-04-17 Thread Noble Paul
System.out.println("successful"+ Utils.toJSON(res.asMap(5))); seems to work for me. which version of Solr and SolrJ are you using On Sun, Apr 16, 2017 at 11:40 AM, Zheng Lin Edwin Yeo wrote: > Ok, thank you. > > Regards, > Edwin > > On 15 April 2017 at 08:05, Noble Paul wrote:

Re: Using BasicAuth with SolrJ Code

2017-04-15 Thread Zheng Lin Edwin Yeo
; > Problem accessing /solr/testing/update. Reason: > > > > require authentication > > > > > > > > > > > > > > > > at > > > > org.apache.solr.client.solrj.impl.HttpSolrClient. > > > exec

Re: Using BasicAuth with SolrJ Code

2017-04-14 Thread Noble Paul
ache.solr.client.solrj.impl.HttpSolrClient. > > executeMethod(HttpSolrClient.java:578) > > > at > > > org.apache.solr.client.solrj.impl.HttpSolrClient.request( > > HttpSolrClient.java:279) > > > at > > > org.apache.solr.client.solrj.impl.HttpSolrClient.re

Re: Using BasicAuth with SolrJ Code

2017-04-13 Thread Zheng Lin Edwin Yeo
79) > > at > > org.apache.solr.client.solrj.impl.HttpSolrClient.request( > HttpSolrClient.java:268) > > at org.apache.solr.client.solrj.SolrRequest.process( > SolrRequest.java:149) > > at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:484) > > at or

Re: Using BasicAuth with SolrJ Code

2017-04-13 Thread Noble Paul
te: > >> can u paste the stacktrace here >> >> On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo >> wrote: >> > I found from StackOverflow that we should declare it this way: >> > http://stackoverflow.com/questions/43335419/using- >> basicauth-with-so

Re: Using BasicAuth with SolrJ Code

2017-04-12 Thread Zheng Lin Edwin Yeo
at we should declare it this way: > > http://stackoverflow.com/questions/43335419/using- > basicauth-with-solrj-code > > > > > > SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//create a new > > request object > > req.setBasicAuthCredenti

Re: Using BasicAuth with SolrJ Code

2017-04-11 Thread Noble Paul
can u paste the stacktrace here On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo wrote: > I found from StackOverflow that we should declare it this way: > http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code > > > SolrRequest req = new QueryReques

Re: SolrJ appears to have problems with Docker Toolbox

2017-04-11 Thread Shawn Heisey
Toolbox VM's host OS. If I go to the VM's IP which is > 192.168.99.100, I can load the admin UI and do basic operations that are > written to go against that IP and port (like querying, schema editor, > manually adding documents, etc.) > > However, when I try to run code

Re: SolrJ appears to have problems with Docker Toolbox

2017-04-11 Thread Vincenzo D'Amore
docker, > > just because the docker instances were referred by ip addresses I cannot > > access with SolrJ. > > > > I avoided this problem referring each docker instance via a hostname > > instead of ip address. > > > > Docker-compose is a great help to hav

Re: SolrJ appears to have problems with Docker Toolbox

2017-04-11 Thread Mike Thomsen
disclaimer I'm the author of https://github.com/freedev/ > solrcloud-zookeeper-docker > > I had same problem when I tried to create a cluster SolrCloud with docker, > just because the docker instances were referred by ip addresses I cannot > access with SolrJ. > > I avoide

Re: Using BasicAuth with SolrJ Code

2017-04-10 Thread Zheng Lin Edwin Yeo
I found from StackOverflow that we should declare it this way: http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//create a new request object req.setBasicAuthCredentials(userName, password); solrClie

Re: SolrJ appears to have problems with Docker Toolbox

2017-04-10 Thread Vincenzo D'Amore
Hi Mike disclaimer I'm the author of https://github.com/freedev/ solrcloud-zookeeper-docker I had same problem when I tried to create a cluster SolrCloud with docker, just because the docker instances were referred by ip addresses I cannot access with SolrJ. I avoided this problem refe

Using BasicAuth with SolrJ Code

2017-04-10 Thread Zheng Lin Edwin Yeo
Hi, I have just set up the Basic Authentication Plugin in Solr 6.4.2 on SolrCloud, and I am trying to modify my SolrJ code so that the code can go through the authentication and do the indexing. I tried using the following code from the Solr Documentation https://cwiki.apache.org/confluence

<    1   2   3   4   5   6   7   8   9   10   >