Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-23 Thread Shawn Heisey
On 10/23/2014 2:47 AM, Erik Hatcher wrote: > Ummm… see slides 10 and 11 here: > http://www.slideshare.net/erikhatcher/solr-indexing-and-analysis-tricks > > So yes, you can do analysis tricks in an update script. And it’s incredibly > useful and powerful! :) That's pretty amazing. I would not

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-23 Thread Erik Hatcher
On Oct 22, 2014, at 3:27 PM, Shawn Heisey wrote: > On 10/22/2014 11:50 AM, Tom LAMPERT wrote: >> I am attempting to create a script (java script) using the >> StatelessScriptUpdateProcessorFactory feature of solr but I am blocked on >> how to access the current core instance (ultimately to acc

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-22 Thread Tom LAMPERT
Thank you, embarrassingly I had not looked at that doc. And thank you to the other repliers. From: Chris Hostetter Sent: 22 October 2014 20:38 To: solr-user@lucene.apache.org Subject: Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-22 Thread Shawn Heisey
On 10/22/2014 11:50 AM, Tom LAMPERT wrote: > I am attempting to create a script (java script) using the > StatelessScriptUpdateProcessorFactory feature of solr but I am blocked on how > to access the current core instance (ultimately to access it's schema)? In > the wikipedia example the input d

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-22 Thread Chris Hostetter
: I am attempting to create a script (java script) using the : StatelessScriptUpdateProcessorFactory feature of solr but I am blocked : on how to access the current core instance (ultimately to access it's : schema)? In the wikipedia example the input document is accessible using : doc = cmd.s

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-22 Thread Ramzi Alqrainy
In the below script you have access to several Solr objects, allowing you for instance to modify the document before it’s indexed by Solr or to add some lines to the Solr log. It’s best demonstrated by an example.