Re: Does an empty query value can cause an "org.apache.solr.search.SyntaxError" error?

2018-11-08 Thread Shawn Heisey

On 11/7/2018 11:36 PM, nettadalet wrote:

Shawn Heisey-2 wrote

I do think that it is proper for empty parentheses to throw a syntax
error.  The text of the exception message is saying that the parser
encountered the ) character at a point when it did not expect to
encounter that character.


A little further thought on this:

When using code to construct query strings, I think a situation can 
easily arise where a query clause is optional, and the "()" string, with 
or without whitespace between the parentheses, ends up in the generated 
query.


I understand why the query parser complains about that syntax ... but I 
don't think it would be unreasonable for Solr's query parsers (lucene 
and edismax probably) to just handle it as if it were not there.


My bias would be to open an enhancement issue in Jira.  I did some 
searching and didn't find an existing issue, which is surprising. It 
could be that there's an existing issue but I was not searching for the 
right keywords.  Before an issue is opened, I'd like to hear what the 
community thinks.


Thanks,
Shawn



Want to subscribe to this list

2018-11-08 Thread Michela Dennis
Do you by any chance have a slack discussion group as well?

Michela Dennis


Re: Unable to get Solr Graph Traversal working

2018-11-08 Thread Vidhya Kailash
thanks Joel. Running with /stream handler did reveal some issues and after
fixing the same the gagtherNodes expr is working!! I am trying out the
recommendations sample from solr website for my use case and now I am
struck at the next step which is unable to get the top 3 of those nodes:
curl --data-urlencode 'expr=top(n="30",
sort="count(*) desc",
nodes(rec_coll,
search(rec_coll,
q="35d40c4b9d6ddfsdf45cbb0fe4aesd75->USER_ID",  fl="ITEM_ID",
sort="ITEM_ID desc", qt="/export"),
walk="ITEM_ID->ITEM_ID",
gather="USER_ID", fl="USER_ID",
maxDocFreq="1",
count(*)))'
http://localhost:8983/solr/rec_coll/graph


Again appreciate any help

Vidhya


On Thu, Nov 8, 2018 at 1:23 PM Joel Bernstein  wrote:

> The basic syntax looks ok. Try it first on the /stream handler to rule out
> any issues that might be related to /graph handler. Can you provide the
> logs from one of the shards in the rec_coll collection that are generated
> by this request? The logs will show the query that is actually being run on
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Wed, Nov 7, 2018 at 1:22 PM Vidhya Kailash 
> wrote:
>
> > I am unable to get even simple graph traversal expressions like the one
> > below to work in my environment (7.4 and 7.5 versions). They simply yield
> > no results, even though I know the data exists.
> > curl --data-urlencode 'expr=gatherNodes(rec_coll,
> >
> > walk="35d40c4b9d6ddfsdf45cbb0fe4aesd75->USER_ID",
> > gather="ITEM_ID")'
> > http://localhost:8983/solr/rec_coll/graph
> >
> > Can someone help?
> >
> > thanks
> > Vidhya
> >
>


-- 
Vidhya Kailash


Re: Solr custom UpdateRequestProcessor error

2018-11-08 Thread Erick Erickson
contrib/customupdate/lib

is not mentioned in the snippet you showed, is it mentioned elsewhere?

You say:
I have the solrconfig.xml with the lib directives to this jar as well as
solr-core.jar

If you have an independent path to solr-core.jar, I'd take it out as
it's automatically loaded.

And what's with solr.net? That's not what I expect at all. Is your
custom code in solr.net? If it's
a custom jar  that you're trying to load into Solr, solr.net shouldn't
be referenced at all
since all the Solr code is in Java so I'm really confused about what
you're trying to do and
how things are set up.

Best,
Erick
On Thu, Nov 8, 2018 at 10:15 AM Vidhya Kailash  wrote:
>
> Any idea why I am getting this error inspite of the following:
>
> I have the customupdateprocessor jar in contrib/customupdate/lib directory
> I have the solrconfig.xml with the lib directives to this jar as well as
> solr-core.jar
>
> and I see those jars being loaded on startup in the logs:
>
> 2018-11-08 01:04:17.929 INFO  (coreLoadExecutor-9-thread-3) [   x:reviews]
> o.a.s.c.SolrResourceLoader [reviews] Added 58 libs to classloader, from
> paths: [/.../solr-7.5.0/contrib/clustering/lib,
> .../solr-7.5.0/contrib/extraction/lib,
> .../solr-7.5.0/contrib/hotelreviews/lib, .../solr-7.5.0/contrib/langid/lib,
> .../solr-7.5.0/contrib/velocity/lib, .../solr-7.5.0/dist]
>
>
> inspite of these I get the following exception:
>
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/solr/update/processor/UpdateRequestProcessorFactory$RunAlways
>
> at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_161]
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> ~[?:1.8.0_161]
>
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> ~[?:1.8.0_161]
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
> ~[?:1.8.0_161]
>
> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
> ~[?:1.8.0_161]
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
> ~[?:1.8.0_161]
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
> ~[?:1.8.0_161]
>
> at java.security.AccessController.doPrivileged(Native Method)
> ~[?:1.8.0_161]
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
> ~[?:1.8.0_161]
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> ~[?:1.8.0_161]
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ~[?:1.8.0_161]
>
> at
> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:565)
> ~[jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> ~[?:1.8.0_161]
>
> at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
> ~[?:1.8.0_161]
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
> ~[?:1.8.0_161]
>
> at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
> ~[?:1.8.0_161]
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ~[?:1.8.0_161]
>
> at java.lang.Class.forName0(Native Method) ~[?:1.8.0_161]
>
> at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_161]
>
> at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:541)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:488)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:792)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:848)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2810)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at
> org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:130)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:850)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2785)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 13:07:55]
>
> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2779)
> ~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
> jimczi - 2018-09-18 

Re: How to log full URL using Jetty RequestLogHandler in Solr 7

2018-11-08 Thread dimaf
Yes, jetty.xml looks the same for Solr 6 and Solr 7, no difference for the
log request section:

diff ~dbl/solr/solr-6.6.0/server/etc/jetty.xml
~dbl/solr/solr-7.4.0/server/etc/jetty.xml 
45c45
< 
---
>  name="solr.jetty.threads.idle.timeout" default="12"/>
107a108,115
>
>  
> class="org.eclipse.jetty.rewrite.handler.RewritePatternRule">
>  /api/*
>  /solr/v2
>
>  
>
154c162
< false
---
> true

Thanks,
Dmitry.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Ingesting/Querying Documents with Nested/Related Documents and extracting Full-text

2018-11-08 Thread Alexandre Rafalovitch
The extract handler is mostly there for prototyping purposes. It uses
Tika under the covers and you can use that yourself in the client.
Given your merge requirements, it would probably be best to have that
separated out.

In terms of structuring, you can do nested document, combined with
[child] transformer:
https://lucene.apache.org/solr/guide/7_5/transforming-result-documents.html#child-childdoctransformerfactory
. You do have to index them as a block together then and update as a
block as well.

Or you could do [subquery]:
https://lucene.apache.org/solr/guide/7_5/transforming-result-documents.html#subquery

Or perhaps something with graphs, if you are running in SolrCloud
mode: https://lucene.apache.org/solr/guide/7_5/graph-traversal.html

Regards,
   Alex.
On Thu, 8 Nov 2018 at 14:02, Stephon Harris
 wrote:
>
> Following up on this to see if anyone has thoughts.
>
> -- Forwarded message -
> From: Stephon Harris 
> Date: Wed, Nov 7, 2018 at 12:21 PM
> Subject: Ingesting/Querying Documents with Nested/Related Documents and
> extracting Full-text
> To: 
>
>
> Hi,
>
> I want to ingest a collection of documents along with extracted full-text
> from PDFs using solr 'update/extract' endpoint to store the text in a field
> called "fullText". I want to relate some documents to other documents so
> when I query the "fullText" field  with user terms, solr returns the first
> matching document with "contentType" field equal to "overview", and several
> related documents with different values for "contentType" like this:
>
>
> {
> "id":"1",
> "contentType":"overview",
> "fullText":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.
> Etiam consectetur ipsum libero, at egestas ante laoreet nec. Aliquam sem
> elit, rhoncus efficitur laoreet sodales, hendrerit eget mi. Nulla facilisis
> tincidunt tortor vel placerat. Phasellus blandit velit eget semper
> tristique. Maecenas convallis orci purus, ac scelerisque erat pulvinar id.
> Donec semper enim id justo cursus, vitae bibendum magna interdum. Maecenas
> eu laoreet nibh. Quisque magna massa, semper et lorem sed, volutpat
> pulvinar quam. Quisque a urna et risus feugiat fermentum nec et orci.
> Pellentesque ac neque sed tortor convallis finibus sit amet id purus. Sed
> blandit eget ante et semper. Vivamus.",
> "product":"paper & goods"
> },
> {
> "id":"2",
> "contentType":"support",
> "title":"The latest support boards",
> "points":["Nulla facilisis tincidunt tortor vel placerat."," Phasellus
> blandit velit eget semper tristique."],
> "product":"paper & goods",
> "parentID":"1"
> },{
> "id":"3",
> "contentType":"boards",
> "title":"",
> "points":["Nulla facilisis tincidunt tortor vel placerat."," Phasellus
> blandit velit eget semper tristique."],
> "product":"paper & goods",
> "parentID":"1"
> }
>
>
> I'm looking for any recommendations on ingesting and querying these
> documents. Can I ingest these documents by nesting child documents in the
> overview document and also extract full-text from a PDF? If so, how can I
> query for both the parent and the children documents?
> Or should I not nest related documents and instead match the overview's ID
> field with a field in the related document called "parentID"? If so, how do
> I form my query to match documents whose parentID field matches the value
> of a document's ID field?
>
> --
> Stephon Harris
>
> *Enterprise Knowledge, LLC*
> *Web: *http://www.enterprise-knowledge.com/
> 
> *E-mail:* shar...@enterprise-knowledge.com/
> 
> *Cell:* 832-628-8352
>
>
>
> --
> Stephon Harris
>
> *Enterprise Knowledge, LLC*
> *Web: *http://www.enterprise-knowledge.com/
> 
> *E-mail:* shar...@enterprise-knowledge.com/
> 
> *Cell:* 832-628-8352


Solr 7.2.1 Security

2018-11-08 Thread Ganesh Sethuraman
Hi

We are using Solr Cloud with Sol 7.2.1 with external 3 node Zookeeper
quorum. I had look at the Basic AuthN and Role based authorization and
Enabling SSL. I have few questions at architectural level and requires your
suggestions

1. Is it possible to do expose the read solr queries and real time GET have
it un-authenticated? and more critical admin functions (manage collections,
backup, etc) alone be available for privileged users?
2. Is it possible to do Collection level authorization? Like have a
separate user who has privilege to do Add, Delete, Modify a "specific"
collection? or should i actually create a separate Solr cluster to do this.
3. I see the documentation for enabling SSL (
https://lucene.apache.org/solr/guide/7_2/enabling-ssl.html), is there any
steps for this with certificates provided by certifying authority? say
thawte, digicert, etc

Regards,
Ganesh
+1-20-334-7764


Re: Disabling jvm properties from ui

2018-11-08 Thread Gus Heck
That's an interesting feature, and it addresses X, but there are lots of
ways to discover system properties. In a managed schema, enter a field name
${java.version} and you'll get a field named 1.8.0_144 (or whatever). I
still think it's important to address Y they are trying to hide the system
properties from someone they have placed their trust in already.

On Thu, Nov 8, 2018 at 1:16 PM Jan Høydahl  wrote:

> It's not documented in the Ref Guide, but you can set this system property
> to fix it:
>
>
> SOLR_OPTS="-Dsolr.redaction.system.pattern=(.*password.*|.*your-own-regex.*)"
>
> Then the property will show as --REDACTED— in the UI.
>
> Note that the property still will leak through /solr/admin/metrics and you
> need to add the same exclusion in solr.xml, see
> https://lucene.apache.org/solr/guide/7_5/metrics-reporting.html#the-metrics-hiddensysprops-element
>
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
>
> > 7. nov. 2018 kl. 20:51 skrev Naveen M :
> >
> > Hi,
> >
> > Is there a way to disable jvm properties from the solr UI.
> >
> > It has some information which we don’t want to expose. Any pointers would
> > be helpful.
> >
> >
> > Thanks
>
>

-- 
http://www.the111shift.com


Fwd: Ingesting/Querying Documents with Nested/Related Documents and extracting Full-text

2018-11-08 Thread Stephon Harris
Following up on this to see if anyone has thoughts.

-- Forwarded message -
From: Stephon Harris 
Date: Wed, Nov 7, 2018 at 12:21 PM
Subject: Ingesting/Querying Documents with Nested/Related Documents and
extracting Full-text
To: 


Hi,

I want to ingest a collection of documents along with extracted full-text
from PDFs using solr 'update/extract' endpoint to store the text in a field
called "fullText". I want to relate some documents to other documents so
when I query the "fullText" field  with user terms, solr returns the first
matching document with "contentType" field equal to "overview", and several
related documents with different values for "contentType" like this:


{
"id":"1",
"contentType":"overview",
"fullText":"Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam consectetur ipsum libero, at egestas ante laoreet nec. Aliquam sem
elit, rhoncus efficitur laoreet sodales, hendrerit eget mi. Nulla facilisis
tincidunt tortor vel placerat. Phasellus blandit velit eget semper
tristique. Maecenas convallis orci purus, ac scelerisque erat pulvinar id.
Donec semper enim id justo cursus, vitae bibendum magna interdum. Maecenas
eu laoreet nibh. Quisque magna massa, semper et lorem sed, volutpat
pulvinar quam. Quisque a urna et risus feugiat fermentum nec et orci.
Pellentesque ac neque sed tortor convallis finibus sit amet id purus. Sed
blandit eget ante et semper. Vivamus.",
"product":"paper & goods"
},
{
"id":"2",
"contentType":"support",
"title":"The latest support boards",
"points":["Nulla facilisis tincidunt tortor vel placerat."," Phasellus
blandit velit eget semper tristique."],
"product":"paper & goods",
"parentID":"1"
},{
"id":"3",
"contentType":"boards",
"title":"",
"points":["Nulla facilisis tincidunt tortor vel placerat."," Phasellus
blandit velit eget semper tristique."],
"product":"paper & goods",
"parentID":"1"
}


I'm looking for any recommendations on ingesting and querying these
documents. Can I ingest these documents by nesting child documents in the
overview document and also extract full-text from a PDF? If so, how can I
query for both the parent and the children documents?
Or should I not nest related documents and instead match the overview's ID
field with a field in the related document called "parentID"? If so, how do
I form my query to match documents whose parentID field matches the value
of a document's ID field?

-- 
Stephon Harris

*Enterprise Knowledge, LLC*
*Web: *http://www.enterprise-knowledge.com/

*E-mail:* shar...@enterprise-knowledge.com/

*Cell:* 832-628-8352



-- 
Stephon Harris

*Enterprise Knowledge, LLC*
*Web: *http://www.enterprise-knowledge.com/

*E-mail:* shar...@enterprise-knowledge.com/

*Cell:* 832-628-8352


Re: SolrCloud scaling/optimization for high request rate

2018-11-08 Thread Toke Eskildsen
On Tue, 2018-11-06 at 16:38 +0200, Sofiya Strochyk wrote:
> I have tested all of the suggested changes none of these seem to make
> a noticeable difference (usually response time and other metrics
> fluctuate over time, and the changes caused by different parameters
> are smaller than the fluctuations). What this probably means is that
> the heaviest task is retrieving IDs by query and not fields by ID. 

Barring anything overlooked, I agree on the query thing.

Were I to sit at the machine, I would try removing part of the query
until performance were satisfactory. Hopefully that would unearth very
few problematic parts, such as regexp, function or prefix-wildcard
queries. There might be ways to replace or tune those.

- Toke Eskildsen, Royal Danish Library




Re: CloudSolrClient produces tons of CLUSTERSTATUS commands against single server in Cloud

2018-11-08 Thread Jason Gerlowski
Hey Shawn,

A few answers, where I can give them.

1. It's easy to miss in the thread, but the user mentioned that
they're creating their CloudSolrClient via solr URLs.
2. When you create a CloudSolrClient with a Solr URL, it's not just
used to fetch the ZK connString so that it can use ZK from then on.
It continues to use the Solr URL for fetching cluster state.  If
you're curious, the codepaths are "ZkClientClusterStateProvider", and
"HttpClusterStateProvider", respectively.

I don't know much about the ClusterStateProvider implementations to
say anything more helpful about the original problem, but figured I'd
chime in where I could.

Best,

Jason
On Wed, Nov 7, 2018 at 12:42 PM Shawn Heisey  wrote:
>
> On 11/6/2018 10:06 PM, Gus Heck wrote:
> > One thing that causes a clusterstatus call is alias resolution if the
> > HttpClusterStateProvider is in use instead of the ZkClusterStateProvider.
> > I've just been fixing spurious error messages generated by this
> > in SOLR-12938.
>
> Gus,
>
> If CloudSolrClient is created using URLs instead of a zkHost, does it do
> EVERYTHING with http instead of ZK?  Because if it does, it might
> actually make sense for it to initiate lot of http requests.  The ZK
> client is capable of nearly instantaneous notification of cluster
> changes ... duplicating that with HTTP would require constant checking.
>
> What I would have hoped for when constructing CloudSolrClient with URLs
> was that it would ask the server(s) for the zkHost setting, and then
> proceed to use ZK.  But I suppose if you're using URLs because ZK isn't
> reachable, that would be problematic.
>
> Thomas,
>
> Are you initializing CloudSolrClient with your ZK server info, or using
> one or more Solr URLs?
>
> Thanks,
> Shawn
>


Re: Unable to get Solr Graph Traversal working

2018-11-08 Thread Joel Bernstein
The basic syntax looks ok. Try it first on the /stream handler to rule out
any issues that might be related to /graph handler. Can you provide the
logs from one of the shards in the rec_coll collection that are generated
by this request? The logs will show the query that is actually being run on

Joel Bernstein
http://joelsolr.blogspot.com/


On Wed, Nov 7, 2018 at 1:22 PM Vidhya Kailash 
wrote:

> I am unable to get even simple graph traversal expressions like the one
> below to work in my environment (7.4 and 7.5 versions). They simply yield
> no results, even though I know the data exists.
> curl --data-urlencode 'expr=gatherNodes(rec_coll,
>
> walk="35d40c4b9d6ddfsdf45cbb0fe4aesd75->USER_ID",
> gather="ITEM_ID")'
> http://localhost:8983/solr/rec_coll/graph
>
> Can someone help?
>
> thanks
> Vidhya
>


Re: Does an empty query value can cause an "org.apache.solr.search.SyntaxError" error?

2018-11-08 Thread nettadalet
Shawn Heisey-2 wrote
> I don't know whether that actually is written anywhere.  I suspect it's
> not.
> 
> I do think that it is proper for empty parentheses to throw a syntax 
> error.  The text of the exception message is saying that the parser 
> encountered the ) character at a point when it did not expect to 
> encounter that character.
> 
> Thanks,
> Shawn

Thank you for your answer



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Does an empty query value can cause an "org.apache.solr.search.SyntaxError" error?

2018-11-08 Thread nettadalet
Shawn Heisey-2 wrote
> I don't know whether that actually is written anywhere.  I suspect it's
> not.
> 
> I do think that it is proper for empty parentheses to throw a syntax 
> error.  The text of the exception message is saying that the parser 
> encountered the ) character at a point when it did not expect to 
> encounter that character.
> 
> Thanks,
> Shawn

Thank you for your answer



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Disabling jvm properties from ui

2018-11-08 Thread Jan Høydahl
It's not documented in the Ref Guide, but you can set this system property to 
fix it:

SOLR_OPTS="-Dsolr.redaction.system.pattern=(.*password.*|.*your-own-regex.*)"

Then the property will show as --REDACTED— in the UI.

Note that the property still will leak through /solr/admin/metrics and you need 
to add the same exclusion in solr.xml, see 
https://lucene.apache.org/solr/guide/7_5/metrics-reporting.html#the-metrics-hiddensysprops-element
 

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 7. nov. 2018 kl. 20:51 skrev Naveen M :
> 
> Hi,
> 
> Is there a way to disable jvm properties from the solr UI.
> 
> It has some information which we don’t want to expose. Any pointers would
> be helpful.
> 
> 
> Thanks



Solr custom UpdateRequestProcessor error

2018-11-08 Thread Vidhya Kailash
Any idea why I am getting this error inspite of the following:

I have the customupdateprocessor jar in contrib/customupdate/lib directory
I have the solrconfig.xml with the lib directives to this jar as well as
solr-core.jar

and I see those jars being loaded on startup in the logs:

2018-11-08 01:04:17.929 INFO  (coreLoadExecutor-9-thread-3) [   x:reviews]
o.a.s.c.SolrResourceLoader [reviews] Added 58 libs to classloader, from
paths: [/.../solr-7.5.0/contrib/clustering/lib,
.../solr-7.5.0/contrib/extraction/lib,
.../solr-7.5.0/contrib/hotelreviews/lib, .../solr-7.5.0/contrib/langid/lib,
.../solr-7.5.0/contrib/velocity/lib, .../solr-7.5.0/dist]


inspite of these I get the following exception:


Caused by: java.lang.NoClassDefFoundError:
org/apache/solr/update/processor/UpdateRequestProcessorFactory$RunAlways

at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_161]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
~[?:1.8.0_161]

at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
~[?:1.8.0_161]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
~[?:1.8.0_161]

at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
~[?:1.8.0_161]

at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
~[?:1.8.0_161]

at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
~[?:1.8.0_161]

at java.security.AccessController.doPrivileged(Native Method)
~[?:1.8.0_161]

at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
~[?:1.8.0_161]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
~[?:1.8.0_161]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
~[?:1.8.0_161]

at
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:565)
~[jetty-webapp-9.4.11.v20180605.jar:9.4.11.v20180605]

at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
~[?:1.8.0_161]

at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
~[?:1.8.0_161]

at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
~[?:1.8.0_161]

at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
~[?:1.8.0_161]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
~[?:1.8.0_161]

at java.lang.Class.forName0(Native Method) ~[?:1.8.0_161]

at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_161]

at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:541)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:488)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:792)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:848)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2810)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:130)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:850)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2785)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2779)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:1430)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.(SolrCore.java:970)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at org.apache.solr.core.SolrCore.(SolrCore.java:869)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

at
org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1138)
~[solr-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df -
jimczi - 2018-09-18 13:07:55]

... 7 more

Caused by: java.lang.ClassNotFoundException:
org.apache.solr.update.processor.UpdateRequestProcessorFactory$RunAlways

at 

AW: Solr suggestions, best practices

2018-11-08 Thread Clemens Wyss DEV
Thx for the link
>Which version of Solr are you using?
7.5

-Ursprüngliche Nachricht-
Von: Zheng Lin Edwin Yeo  
Gesendet: Mittwoch, 7. November 2018 07:50
An: solr-user@lucene.apache.org
Betreff: Re: Solr suggestions, best practices

Maybe you can look into this:
https://lucidworks.com/2015/03/04/solr-suggester/

Which version of Solr are you using?

Regards,
Edwin

On Tue, 6 Nov 2018 at 17:00, Clemens Wyss DEV  wrote:

> At the moment we are using spellchecking-component for suggestions 
> which is suboptimal, to say the least. What are best pracitces for 
> suggestions using Solr?
> googling (with excellent suggestions ) I came along
>
> https://blog.trifork.com/2012/02/15/different-ways-to-make-auto-sugges
> tions-with-solr/
> and
>
> https://grokbase.com/t/lucene/solr-user/14bayc6jkc/best-practice-autos
> uggest-autocomplete-vs-real-search
>
> Any other valuable reads/links regarding suggestions?
>
> Thx in advance
> - Clemens
>