Re: pilerexport w flag matching

2021-04-08 Thread sj
Hello Ryan, try getting the master branch, do a complete build, however, don't install it. Instead enter the src directory, use LD_LIBRARY_PATH=. to make sure ./pilerexport will use the recently built libpiler.so file, and try again. Also it's worth to check what's going on 127.0.0.1:9306

Re: pilerexport w flag matching

2021-04-08 Thread Ryan Blenis
Hi Janos, Thanks as always for the reply. No worries on the -w replacing the other switches, a documentation update will clear that up pretty easily, and thank you, I'd love a total in the dry run! As for "the export utility assumes searchd is listening on 127.0.0.1:9306 That part didn't change

Re: pilerexport w flag matching

2021-04-07 Thread sj
Hello Ryan, On 2021-04-08 01:36, Ryan Blenis wrote: Thanks, that led me to what is causing the issue / confusion. The -w switch is described as "Where condition to pass to sphinx, eg. "match('@subject: piler')" Which led me to believe the MATCH string was all that was supposed to be

Re: pilerexport w flag matching

2021-04-07 Thread Ryan Blenis
I should clarify the "error: cannot connect to 127.0.0.1:9306" error message. This error does not occur at compile time, but only at runtime of the latest pilerexport, and only when the -w switch is used. On Wed, Apr 7, 2021 at 7:36 PM Ryan Blenis wrote: > Hi Janos, > > Thanks, that led me to

Re: pilerexport w flag matching

2021-04-07 Thread Ryan Blenis
Hi Janos, Thanks, that led me to what is causing the issue / confusion. The -w switch is described as "Where condition to pass to sphinx, eg. "match('@subject: piler')" Which led me to believe the MATCH string was all that was supposed to be there/replaced, however a quick look at the code

Re: pilerexport w flag matching

2021-04-07 Thread Ryan Blenis
Disregard that last email. Coffee is good, not re-running ./configure after installing deps is bad. Following up shortly with more pertinent info. Thank you. On Wed, Apr 7, 2021 at 3:58 PM Ryan Blenis wrote: > Hi Janos, > > Thanks for the response, in trying to do this (I cloned the repo, >

Re: pilerexport w flag matching

2021-04-07 Thread Ryan Blenis
Hi Janos, Thanks for the response, in trying to do this (I cloned the repo, ./configure --localstatedir=/var --with-database=mariadb , and ran make) and got this: Making all in src make[1]: Entering directory '/tmp/piler/src/piler/src' gcc -std=c99 -O2 -fPIC -Wall -Wextra

Re: pilerexport w flag matching

2021-04-07 Thread sj
Hello Ryan, please apply this patch to pilerexport.c, and recompile it. https://bitbucket.org/jsuto/piler/commits/e6607b0bf1d44562bcf2a08e3bfed94181b7b95d It syslogs the sphinx query. Then try the following. Enter the search query on the gui, and record the sphinx query syslogged. Then