Is it possible to use the Lucene Query Builder? Is there any API to create boolean queries?

2019-11-27 Thread email
I am trying to simulate the following query(Lucene query builder) using Solr BooleanQuery.Builder main = new BooleanQuery.Builder(); Term t1 = new Term("f1","term"); Term t2 = new Term("f1","second"); Term t3 = new Term("f1","another"); BooleanQuery.Builder q1 = new BooleanQuery.Builder(); q

Re: A Last Message to the Solr Users

2019-11-27 Thread Mark Miller
Now one company thinks I’m after them because they were the main source of the jokes. Companies is not a typo. If you are using Solr to make or save tons of money or run your business and you employee developers, please include yourself in this list. You are taking and in my opinion Solr is goin

Re: Backup v.s. Snapshot API for Solr

2019-11-27 Thread Kayak28
Hello, Mr. Paras and Community Members: >Once you have created a snapshot with >CREATESNAPSHOT, you can restore the snapshot with same replication restore >command, right? Is it? As far as I know, CREATESNAPSHOT is an action to create a file, named snapshot_N, under data/snapshot_metadata direct

Re: A Last Message to the Solr Users

2019-11-27 Thread Walter Underwood
I’m a big fan of master/slave Solr. Super robust and trivial to scale-out. Solr Cloud has been useful for managing sharding and replicas, but less robust than I would like. Also less robust than my managers would like. It has gotten a bad reputation, only partially undeserved. I’m also not espe

Convert javabin to json

2019-11-27 Thread Wei
Hi, Is there a reliable way to convert solr's javabin response to json format? We use solrj client with wt=javabin, but want to convert the received javabin response to json for passing to client. We don't want to use wt=json as javabin is more efficient. We tried the noggit jsonutil https://gi

Re: Prevent Solr overwriting documents

2019-11-27 Thread Walter Underwood
That would be “do-not-overwrite”. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Nov 27, 2019, at 4:38 PM, Walter Underwood wrote: > > Even if that works, it is evil as something to leave in a client codebase. > Maybe a do-no-overwrite flag would

Re: Prevent Solr overwriting documents

2019-11-27 Thread Walter Underwood
Even if that works, it is evil as something to leave in a client codebase. Maybe a do-no-overwrite flag would be useful. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Nov 27, 2019, at 3:24 PM, Alexandre Rafalovitch wrote: > > How about Optimistic

Re: Prevent Solr overwriting documents

2019-11-27 Thread Alexandre Rafalovitch
Oops. And the link... https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-OptimisticConcurrency On Wed, Nov 27, 2019, 6:24 PM Alexandre Rafalovitch, wrote: > How about Optimistic Concurrency with _version_ set to negative value? > > You could inject

Re: Prevent Solr overwriting documents

2019-11-27 Thread Alexandre Rafalovitch
How about Optimistic Concurrency with _version_ set to negative value? You could inject that extra value in URP chain if need be. Regards, Alex On Wed, Nov 27, 2019, 5:41 PM Aaron Hoffer, wrote: > We want to prevent Solr from overwriting an existing document if document's > ID already exis

Prevent Solr overwriting documents

2019-11-27 Thread Aaron Hoffer
We want to prevent Solr from overwriting an existing document if document's ID already exists in the core. This unit test fails because the update/overwrite is permitted: public void testUpdateProhibited() { final Index index = baseInstance(); indexRepository.save(index); Index index0 = ind

Re: Solr master issue : IndexNotFoundException

2019-11-27 Thread Shawn Heisey
On 11/27/2019 6:28 AM, Akreeti Agarwal wrote: Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file found in LockValidatingDirectoryWrapper(NRTCachingDirectory(MMapDirectory@/solr-m/server/solr/sitecore_web_index/data/index lockFactory=org.apache.lucene.store.NativeFSLoc

Re: problem using Http2SolrClient with solr 8.3.0

2019-11-27 Thread Jörn Franke
Which jdk version? In this Setting i would recommend JDK11. > Am 27.11.2019 um 22:00 schrieb Odysci : > > Hi, > I have a solr cloud setup using solr 8.3 and SolrJj, which works fine using > the HttpSolrClient as well as the CloudSolrClient. I use 2 solr nodes with > 3 Zookeeper nodes. > Recently

Re: problem using Http2SolrClient with solr 8.3.0

2019-11-27 Thread Houston Putman
Are you overriding the Jetty version in your application using SolrJ? On Wed, Nov 27, 2019 at 4:00 PM Odysci wrote: > Hi, > I have a solr cloud setup using solr 8.3 and SolrJj, which works fine using > the HttpSolrClient as well as the CloudSolrClient. I use 2 solr nodes with > 3 Zookeeper nodes

problem using Http2SolrClient with solr 8.3.0

2019-11-27 Thread Odysci
Hi, I have a solr cloud setup using solr 8.3 and SolrJj, which works fine using the HttpSolrClient as well as the CloudSolrClient. I use 2 solr nodes with 3 Zookeeper nodes. Recently I configured my machines to handle ssl, http/2 and then I tried using in my java code the Http2SolrClient supported

Re: A Last Message to the Solr Users

2019-11-27 Thread Mark Miller
If SolrCloud worked well I’d still agree both options are very valid depending on your use case. As it is, I’m embarrassed that people give me any credit for this. I’m here to try and delight users and I have failed in that. I tried to put a lot of my own time to address things outside of working o

Re: A Last Message to the Solr Users

2019-11-27 Thread David Hastings
Personally I found nothing in solr cloud worth changing from standalone for, and just added more complications, more servers, and required becoming an expert/knowledgeable in zoo keeper, id rather spend my time developing than becoming a systems administrator On Wed, Nov 27, 2019 at 3:45 AM Mark M

Re: Solr master issue : IndexNotFoundException

2019-11-27 Thread Atita Arora
Did you happen to check the permissions , give it a try to add 777, maybe the user running solr does not have permission to access the index dir. On Wed, Nov 27, 2019 at 3:45 PM Akreeti Agarwal wrote: > Hi, > > I removed the write.lock file from the index and then restarted the solr > server, bu

RE: Solr master issue : IndexNotFoundException

2019-11-27 Thread Akreeti Agarwal
Hi, I removed the write.lock file from the index and then restarted the solr server, but still the same issue was observed. Thanks & Regards, Akreeti Agarwal (M) +91-8318686601 -Original Message- From: Atita Arora Sent: Wednesday, November 27, 2019 7:21 PM To: solr-user@lucene.apache.

Re: Solr master issue : IndexNotFoundException

2019-11-27 Thread Atita Arora
It seems to be either the permission problem or maybe because of the write.lock file not removed due to process kill. Did you happen to check this one ? https://lucene.472066.n3.nabble.com/SolrCore-collection1-is-not-available-due-to-init-failure-td4094869.html On Wed, Nov 27, 2019 at 2:28 PM Akr

Solr master issue : IndexNotFoundException

2019-11-27 Thread Akreeti Agarwal
Hi All, I am getting these two errors after restarting my solr master server: null:org.apache.solr.common.SolrException: SolrCore 'sitecore_web_index' is not available due to init failure: Error opening new searcher Caused by: org.apache.lucene.index.IndexNotFoundException: no segments* file f

Re: Icelandic support in Solr

2019-11-27 Thread Andrzej Białecki
If I’m not mistaken Hunspell supports Icelandic (see here: https://cgit.freedesktop.org/libreoffice/dictionaries/tree/is ) and Lucene HunspellStemFilter should be able to use these dictionaries. > On 27 Nov 2019, at 10:10, Charlie H

Re: Some newby questions ...

2019-11-27 Thread Christian Dannemann
Hmmm... I tried that as well, but it doesn't pick up the security.json settings. I run this instance on a computer that is on the internet, so just changing the port is asking for trouble. Looks like nobody knows how to import imap data Best regards, Christian On Tue, 26 Nov 2019 at 23:55

Re: Production Issue: cannot connect to solr server suddenly

2019-11-27 Thread Vignan Malyala
Sure! Error: Failed to connect to server at ' http://127.0.0.1:8983/solr/my_core/update/?commit=true ', are y

Re: Custom sort function

2019-11-27 Thread Sripra deep
My exact requirement is, I will have a new field for a set of documents for sorting. So the number of fields is growing like 10k fields(custom_sort1,custom_sort2.,etc), for 10k groups, each group grouping a set of documents. Since the documents can reside in more than one group I cannot use a sing

Re: Icelandic support in Solr

2019-11-27 Thread Charlie Hull
On 26/11/2019 16:35, Mikhail Ibraheem wrote: Hi,Does Solr supports Icelandic language out of the box? If not, can you please let me know how to add that with custom analyzers? Thanks The Snowball stemmer project which is used by Solr (https://snowballstem.org/algorithms/ - co-created by Marti

Re: Custom sort function

2019-11-27 Thread Jörn Franke
Maybe can you do it as part of the loading to calculate the score? Which Solr version are you using? Are you doing some heavily lifting into the constructor or your filter? > Am 27.11.2019 um 09:34 schrieb Sripra deep : > >  > Hi Jörn Franke, > > I modified the custom function to just return

Re: A Last Message to the Solr Users

2019-11-27 Thread Mark Miller
This is your queue to come and make your jokes with your name attached. I’m sure the Solr users will appreciate them more than I do. I can’t laugh at this situation because I take production code seriously. -- - Mark http://about.me/markrmiller

Re: Custom sort function

2019-11-27 Thread Sripra deep
Hi Jörn Franke, I modified the custom function to just return a constant value as 1.0 for all the docs and ran the load again, the latency is worst like more than 20sec. The filter I am using will fetch 15k documents (so this function is called 15k times). And if I don't call this function in my

Re: A Last Message to the Solr Users

2019-11-27 Thread Mark Miller
And if you are a developer, enjoy that Gradle build! It was the highlight of my year. On Wed, Nov 27, 2019 at 10:00 AM Mark Miller wrote: > If you have a SolrCloud installation that is somehow working for you, > personally I would never upgrade. The software is getting progressively > more unsta

A Last Message to the Solr Users

2019-11-27 Thread Mark Miller
If you have a SolrCloud installation that is somehow working for you, personally I would never upgrade. The software is getting progressively more unstable every release. I wrote most of the core of SolrCloud in a prototype fashion many, many years ago. Only Yonik’s isolated work is solid and mos