Re: bash: solr: command not found

2020-10-15 Thread Gora Mohanty
On Thu, 15 Oct 2020 at 22:27, Ryan W wrote: > Hi all, > > I run solr like this... > > service solr start > You are probably running Solr on a Linux machine using systemd where someone has set up the systemd files needed for Solr. This might not have been done on your client's system. Try

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
Solved by setting a SOLR_PID_DIR path in my solr.in.sh. And then giving the solr user ownership of that directory. Thanks On Thu, Oct 15, 2020 at 11:17 AM Alexandre Rafalovitch wrote: > If the .pid file is not at that location, then I would investigate > where that file is instead (after Solr

Re: Solr 8.6.3

2020-10-15 Thread Gus Heck
Shameless self plug,.. JesterJ (which I maintain) has a stax based xml extractor https://github.com/nsoft/jesterj/wiki/Document-Processors#staxextractingprocessor if you want to try it out. On Thu, Oct 15, 2020 at 4:32 PM Alexandre Rafalovitch wrote: > Why not do an XSLT transformation on it

Re: Solr 8.6.3

2020-10-15 Thread Walter Underwood
Solr does not index XML. It has an XML data format for indexing text. If you want to index and search XML, get MarkLogic. I used to work there. It is seriously awesome technology. https://www.marklogic.com wunder Walter Underwood wun...@wunderwood.org

Re: Solr 8.6.3

2020-10-15 Thread Alexandre Rafalovitch
Why not do an XSLT transformation on it before it hits Solr. Or during if it really has to be in-Solr for some reason https://lucene.apache.org/solr/guide/8_6/uploading-data-with-index-handlers.html#using-xslt-to-transform-xml-index-updates But you have more options outside as you could use

Re: systemd definition for solr?

2020-10-15 Thread Ryan W
I just needed to enable the service with systemctl enable solr.service On Thu, Oct 15, 2020 at 4:03 PM Ryan W wrote: > I didn't realize that to start a systemd service, I need to do... > > systemctl start solr > > ...and not... > > service solr start > > Now the output from the status

Solr 8.6.3

2020-10-15 Thread Kris Gurusamy
I've just downloaded solr 8.6.3 and trying to create DIH for loading structured XML. I found out that DIH will be deprecated soon with version 9.0. What is the equivalent of DIH in new solr version? How do I import structured XML data which is very custom and index in Solr new version? Any help

Re: systemd definition for solr?

2020-10-15 Thread Ryan W
I didn't realize that to start a systemd service, I need to do... systemctl start solr ...and not... service solr start Now the output from the status command looks a bit better, though still with some problems... [root@faspbsy0002 system]# systemctl status solr.service ? solr.service - LSB:

systemd definition for solr?

2020-10-15 Thread Ryan W
Does anyone have a simple systemd definition for a solr service? The things I am finding on the internet don't work. I am not sure if this is the kind of thing where there might be some boilerplate that (usually) works? Or do situations vary so much that no boilerplate is possible? Here is

Info about legacyMode cluster property

2020-10-15 Thread yaswanth kumar
Can someone explain what are the implications when we change legacyMode=true on solr 8.2 We have migrated from solr 5.5 to solr 8.2 everything worked great but when we are trying to add a core to existing collection with core api create it’s asking to pass the coreNodeName or switch legacyMode

bash: solr: command not found

2020-10-15 Thread Ryan W
Hi all, I run solr like this... service solr start However, another user of the server can't run solr this way. They are seeing... bash: solr: command not found How do I enable them to run Solr as a service? Thank you, Ryan

Re: Strange fetch streaming expression doesn't fetch fields sometimes?

2020-10-15 Thread uyilmaz
Is it possible to duplicate its functionality using existing expressions? In SQL, while grouping you can just say first(column) to get some one-to-many value if you don't care which one you get. Solr usually only has min,max,avg.. aggregation functions. If it had a "first" function I could just

Error false and Error true in Solr logs

2020-10-15 Thread gnandre
Hi, What do Error false and Error true flags mentioned against Solr errors in Solr admin UI log mean?

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Alexandre Rafalovitch
If the .pid file is not at that location, then I would investigate where that file is instead (after Solr is started). If it is in a different location, then you have different environment expectations, somehow. This, in all honesty, would still be consistent with my theory that Solr was started

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Joe Doupnik
    Ah so, systemd style. I suggestion which might help. Look at the /etc/init.d style script in the Solr distribution and uses its commands as a reference when you review the systemd equivalents. In addition, a prerequisite is choosing the user+group for Solr files, applying ownership of

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
The .pid file referenced in the "Permission denied" message does not exist. On Thu, Oct 15, 2020 at 11:01 AM Ryan W wrote: > I have been starting solr like so... > > service solr start > > > On Thu, Oct 15, 2020 at 10:31 AM Joe Doupnik wrote: > >> Alex has it right. In my environment I

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
I have been starting solr like so... service solr start On Thu, Oct 15, 2020 at 10:31 AM Joe Doupnik wrote: > Alex has it right. In my environment I created user "solr" in group > "users". Then I ensured that "solr:user" owns all of Solr's files. In > addition, I do Solr start/stop with

Re: Data Impor Handlert

2020-10-15 Thread DINSD | SPAutores
Hi Alexander, Very useful the provided information. Assinatura SPA Many thanks and best regards ** *Rui Pimentel* ** *DINSD - Departamento de Informática / SPA Digital* Av. Duque de Loulé, 31 - 1069-153 Lisboa PORTUGAL *T * (+ 351) 21 359 44 36 */* (+ 351) 21 359 44 00 *F* (+ 351) 21 353 02

Re: Data Impor Handlert

2020-10-15 Thread Alexandre Rafalovitch
Solr now has package managers and DIH is one of the packages to reflect the fact that its development cycle is not locked to Solr's and to reduce core download. Tika may be heading the same way, as running Tika inside the Solr process could cause memory issues with complex PDFs. In terms of other

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Joe Doupnik
    Alex has it right. In my environment I created user "solr" in group "users". Then I ensured that "solr:user" owns all of Solr's files. In addition, I do Solr start/stop with an /etc/init.d script (the Solr distribution has the basic one which we can embellish) in which there is control

Data Impor Handlert

2020-10-15 Thread DINSD | SPAutores
Hi Based on this document there are two ways to index document on the Solr platform, https://lucidworks.com/post/indexing-with-solrj/ Quote: "Two popular methods of indexing existing data are the Data Import Handler (DIH) and Tika (Solr Cell)/ExtractingRequestHandler" Now that DHI has been

Re: solr-8983.pid: Permission denied

2020-10-15 Thread Alexandre Rafalovitch
It sounds like maybe you have started the Solr in a different way than you are restarting it. E.g. maybe you started it manually (bin/solr start, probably as a root) but are trying to restart it via service script. Who owned the .pid file? I am guessing 'root', while the service script probably

solr-8983.pid: Permission denied

2020-10-15 Thread Ryan W
What is my permissions problem here: [root@faspbsy0002 bin]# service solr restart Sending stop command to Solr running on port 8983 ... waiting up to 180 seconds to allow Jetty process 38947 to stop gracefully. /opt/solr/bin/solr: line 2125: /opt/solr/bin/solr-8983.pid: Permission denied What is

Re: Rotate Solr Logfiles

2020-10-15 Thread DINSD | SPAutores
Hi Erick, I tried with four different browsers, whit clear caches. Appears in any of them. Assinatura SPA Best ** *Rui Pimentel* ** *DINSD - Departamento de Informática / SPA Digital* Av. Duque de Loulé, 31 - 1069-153 Lisboa PORTUGAL *T * (+ 351) 21 359 44 36 */* (+ 351) 21 359 44 00 *F* (+

Re: Rotate Solr Logfiles

2020-10-15 Thread Erick Erickson
Possibly browser caches? Try using a private window or purging your browser caches. Shot in the dark… Best, Erick > On Oct 15, 2020, at 5:41 AM, DINSD | SPAutores > wrote: > > Hi, > > I'm currently using Solr-8.5.2 with a default log4j2.xml and trying to do the > following : > > Each

Rotate Solr Logfiles

2020-10-15 Thread DINSD | SPAutores
Hi, I'm currently using Solr-8.5.2 with a default log4j2.xml and trying to do the following : Each time an event appears in the log file, i check, rectify if necessary and clean (Rotate) the logfiles. This causes the solr.log file to run out of data, which is what we want. However if I