Re: Stopping a node from receiving any requests temporarily.

2017-04-12 Thread Callum Lamb
ica that references it? Or do they switch roles? > > Best, > Erick > > On Wed, Apr 12, 2017 at 7:39 AM, Callum Lamb wrote: > > Forgot to mention. We're using solr 5.5.2 in Solr cloud mode. Everything > is > > single sharded at the moment as the collections are st

Re: Stopping a node from receiving any requests temporarily.

2017-04-12 Thread Callum Lamb
Forgot to mention. We're using solr 5.5.2 in Solr cloud mode. Everything is single sharded at the moment as the collections are still quite small. On Wed, Apr 12, 2017 at 3:30 PM, Callum Lamb wrote: > We have a Solr cluster that still takes queries that join between cores (I > kno

Stopping a node from receiving any requests temporarily.

2017-04-12 Thread Callum Lamb
We have a Solr cluster that still takes queries that join between cores (I know, bad). We can't change that anytime soon however and I was hoping there was a band-aid I could use in the mean time to make deployments of new nodes cleaner. When we want to add a new node to cluster we'll have a brief

Handling ampersands in searches.

2016-11-16 Thread Callum Lamb
I'm having an issue where searches that contain ampersands aren't being handled correctly. I need them to be dropped at index time *AND* query time. When documents come in and are indexed the ampersands are successfully dropped when they go into my stemmed field (When I facet on the stemmed field t

Re: Should we still optimize?

2016-08-08 Thread Callum Lamb
involve polling the core status until deleteddocs goes below a certain level :/. Cheers for info. On Mon, Aug 8, 2016 at 2:58 PM, Shawn Heisey wrote: > On 8/8/2016 3:10 AM, Callum Lamb wrote: > > How true is this claim? Is optimizing still a good idea for the > > general case? > &

Should we still optimize?

2016-08-08 Thread Callum Lamb
We have a cronjob that runs every week at a quiet time to run the optimizecommand on our Solr collections. Even when it's quiet it's still an extremely heavy operation. One of the things I keep seeing on stackoverflow is that optimizing is now essentially deprecated and lucene (We're on Solr 5.5.2

Re: Multilevel grouping?

2016-07-14 Thread Callum Lamb
Look at the collapse module https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results. It can the same thing as group. If you want to get counts/facets from before the collapse, tag the collapse statement use the exclude tags tags in your json facets (there's an equivalent for n

Re: Date range warming.

2016-07-01 Thread Callum Lamb
estamp and It's these that get cached. So you can see if they'll match by looking at those. On Fri, Jul 1, 2016 at 12:00 PM, Callum Lamb wrote: > Woops, Just realised it's meant to be: > > date_published:([NOW/DAY-6MONTH+1DAY TO NOW/DAY+1DAY-*1MILLISECOND*]) > > inst

Re: Date range warming.

2016-07-01 Thread Callum Lamb
Woops, Just realised it's meant to be: date_published:([NOW/DAY-6MONTH+1DAY TO NOW/DAY+1DAY-*1MILLISECOND*]) instead. On Fri, Jul 1, 2016 at 11:52 AM, Callum Lamb wrote: > We want to warm some FQ's. The main ones we want to do being date presets > like "last 6 mont

Date range warming.

2016-07-01 Thread Callum Lamb
We want to warm some FQ's. The main ones we want to do being date presets like "last 6 months", "last year" .etc The queries for the last 6 months get generated to look like this from site (it's really 6 months -1 day): *date_published:([2016-01-02T00:00:00.000Z TO 2016-07-01T23:59:59.999Z])* Bu

Re: Nested grouping or equivalent.

2016-05-12 Thread Callum Lamb
> are OK). > > Have you seen the CollapsingQParserPlugin? That might help. > > Or push back at the product manager and say "why are we wasting > time supporting something nobody uses?" ;) > > Best, > Erick > > On Wed, May 11, 2016 at 1:45 AM, Callum Lamb

Nested grouping or equivalent.

2016-05-11 Thread Callum Lamb
We have a horrible Solr query that groups by a field and then sorts by another. My understanding is that for this to happen it has to sort by the grouping field, group it and then sort the resulting result set. It's not a fast query. Unfortunately our documents now need to be grouped as well (prod

Re: Classes in solr_home /lib cannot import from solr/dist

2016-01-15 Thread Callum Lamb
:03 PM, Shawn Heisey wrote: > On 1/14/2016 5:36 AM, Callum Lamb wrote: > > I've got an extension jar that contains a class which extends from > > > > org.apache.solr.handler.dataimport.DataSource > > > > But it only works if it's within the solr/dist folder

Re: Classes in solr_home /lib cannot import from solr/dist

2016-01-14 Thread Callum Lamb
on't face a class not found exception. > > > On Thu, Jan 14, 2016 at 4:36 AM, Callum Lamb wrote: > > > I've got an extension jar that contains a class which extends from > > > > org.apache.solr.handler.dataimport.DataSource > > > > But it only w

Classes in solr_home /lib cannot import from solr/dist

2016-01-14 Thread Callum Lamb
I've got an extension jar that contains a class which extends from org.apache.solr.handler.dataimport.DataSource But it only works if it's within the solr/dist folder. However when stored in the lib/ folder within Solr home. When it tries to load the class it cannot find it's parent: Exception i