Re: Boost on newer documents

2010-11-29 Thread Mat Brown
Hi Jason, You can use boost functions in the dismax handler to do this: http://wiki.apache.org/solr/DisMaxQParserPlugin#bf_.28Boost_Functions.29 Mat On Mon, Nov 29, 2010 at 11:28, Jason Brown wrote: > > Hi, > > I use the dismax query to search across several fields. > > I find I have a lot of

Less convoluted way to query for an empty string?

2010-07-14 Thread Mat Brown
Hi all, I can't seem to find a way to query for an empty string that is simpler than this: field_name:[* to ""] Things that don't work: field_name:"" field_name["" TO ""] Is the one I'm using the simplest option? If so, is there a particular reason the other ones I mention don't work? Just cur

Re: Delete by query discrepancy

2010-02-16 Thread Mat Brown
Cool, thanks - just wanted to make sure I'm not insane. Makes sense that there would be a difference if the index is built fresh in that case. On Tue, Feb 16, 2010 at 11:59, Mark Miller wrote: > Mat Brown wrote: >> Hi all, >> >> Trying to debug a very sneaky bug in a s

Delete by query discrepancy

2010-02-16 Thread Mat Brown
g it, but I was surprised to find out that the deleteByQuery() query is what makes the difference between passing and failing. Any insight much appreciated! Mat Brown

Re: migrating from solr 1.3 to 1.4

2010-02-13 Thread Mat Brown
On Fri, Feb 12, 2010 at 19:46, Sachin Sebastian wrote: > Hi there, > >       I'm trying to migrate from solr 1.3 to solr 1.4 and I've few issues. > Initially my localsolr was throwing NullPointer exception and I fixed it by > changing type of lat and lng to 'tdouble'. But now I'm not able to updat

Re: expire/delete documents

2010-02-12 Thread Mat Brown
You could easily have a scheduled job that ran delete by query to remove posts older than a certain date... On Fri, Feb 12, 2010 at 13:00, Matthieu Labour wrote: > HiIs there a way for solr or lucene to expire documents based on a field in a > document. Let's say that I have a createTime field w

Re: Dynamic fields with more than 100 fields inside

2010-02-11 Thread Mat Brown
On Thu, Feb 11, 2010 at 15:41, gdeconto wrote: > > > Xavier Schepler wrote: >> >> for example, "concept_user_*", and I will have maybe more than 200 users >> using this feature. >> > > I've done tests with many hundred dynamically created fields (ie foo_1 thru > f_400).  generally speaking, I have

Re: Has anyone done request logging with Solr-Ruby for use in Rails?

2010-02-11 Thread Mat Brown
as thinking of something that would add all the ms together and report it > in the "completed at" line so you can get a higher level view of which > requests take the time and where. > > Ian. > > On Thu, Feb 11, 2010 at 1:13 PM, Mat Brown wrote: > >> On Thu, Feb 11,

Re: Has anyone done request logging with Solr-Ruby for use in Rails?

2010-02-11 Thread Mat Brown
On Thu, Feb 11, 2010 at 13:07, Ian Connor wrote: > The idea is that in the log is currently like: > > Completed in 1290ms (View: 152, DB: 75) | 200 OK [ > http://localhost:3000/search?q=nik+gene+cluster&view=2] > > I want to extend it to also track the Solr query times and time spent in > solr-rub

Re: Specify logging options from command line in Solr 1.4?

2010-01-26 Thread Mat Brown
On Mon, Jan 18, 2010 at 19:15, Mark Miller wrote: > Mat Brown wrote: >> Hi all, >> >> Wondering if anyone can point me at a simple way to specify basic >> logging options (log level, log file location) when starting the Solr >> example jar from the command line

Specify logging options from command line in Solr 1.4?

2010-01-18 Thread Mat Brown
Hi all, Wondering if anyone can point me at a simple way to specify basic logging options (log level, log file location) when starting the Solr example jar from the command line. As a bit of background, I maintain a Ruby library for Solr called Sunspot that ships with a Solr installation for ease

Re: Requesting feedback on solr-spatial plugin

2009-12-30 Thread Mat Brown
ven more capable.  See > http://wiki.apache.org/solr/SpatialSearch for more details. > > Cheers, > Grant > > On Dec 30, 2009, at 6:51 PM, Mat Brown wrote: > >> Hi all, >> >> I've been working on a small Solr plugin to expose the basic >> funct

Requesting feedback on solr-spatial plugin

2009-12-30 Thread Mat Brown
Hi all, I've been working on a small Solr plugin to expose the basic functionality of lucene-spatial as unobtrusively as possible. I've got a basic implementation up and passing tests, and I was hoping to get some feedback on it. Though I've coded against Lucene for a production app in the past, t

Automating implementation of SolrInfoMBean

2009-12-30 Thread Mat Brown
Hi all, Is there a standard way to automatically update the values returned by the methods in SolrInfoMBean? Particularly those concerning revision control etc. I'm assuming folks don't just update that by hand every commit... Thanks! Mat

Filter exclusion on query facets?

2009-12-15 Thread Mat Brown
Hi all, Just wondering if it's possible to do filter exclusion (i.e., multiselect faceting) on query facets in Solr 1.4? Thanks! Mat

Which query parser handles nested queries?

2009-10-16 Thread Mat Brown
Hi all, I'm trying to figure out which query parser handles nested queries (the kind documented here: http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/). When working with Solr 1.3 stable, I'm able to use this syntax effectively using the default requestHandler, but when I am

Re: No-op query for :q parameter?

2009-09-22 Thread Mat Brown
:*' though - thanks. Mat On Tue, Sep 22, 2009 at 15:12, Shalin Shekhar Mangar wrote: > On Wed, Sep 23, 2009 at 12:33 AM, Mat Brown wrote: > >> Thanks, Shalin. The "*:*" sounds good - so that'll definitely have no >> effect on query performance? >> >

Re: No-op query for :q parameter?

2009-09-22 Thread Mat Brown
x27;d particularly like to put into the :q parameter. Mat On Tue, Sep 22, 2009 at 15:00, Shalin Shekhar Mangar wrote: > On Wed, Sep 23, 2009 at 12:19 AM, Mat Brown wrote: > >> >> If I have a set of filter queries that I'd like to apply but nothing >> that I particularl

No-op query for :q parameter?

2009-09-22 Thread Mat Brown
Hi all, If I have a set of filter queries that I'd like to apply but nothing that I particularly would like to put into the :q parameter (since I'd like all of the scopes to be cached), is there any problem with just passing "[* TO *]" for the :q param? Any performance implications? Thanks! Mat

NoClassDefFoundError for org.apache.solr.handler.component.SearchComponent when running LocalSolr

2009-08-03 Thread Mat Brown
Hi all, I just tried installing LocalSolr and LocalLucene - both the v2.0 tags - in my Solr 1.3 instance, but when I start up I'm getting a NoClassDefFoundError for org.apache.solr.handler.component.SearchComponent. Grepping through the source it appears that that class does exist in Solr 1.3, so

Index-time boost propagated to copyField?

2009-07-10 Thread Mat Brown
Hi all, If I have two fields that are copied into a copyField, and I index data in these fields using different index-time boosts, are those boosts propagated into the copyField? Thanks! Mat

Re: How to search date

2009-06-10 Thread Mat Brown
Assuming the date is 2009-01-01 00:00:00 UTC... Before: my_date:[* TO 2009-01-01T00:00:00Z] After: my_date:[2009-01-01T00:00:00Z TO *] Between: my_date:[2009-01-01T00:00:00Z TO 2010-01-01T00:00:00Z] All: my_date:[* TO *] (or just don't put a date at all) Mat On Wed, Jun 10, 2009 at 02:27, chem l

Re: Initializing Solr Example

2009-06-09 Thread Mat Brown
Neil - when started using the packaged start.jar, Solr runs in the foreground; that's why you can't type anything in the command line after starting it. Mat On Tue, Jun 9, 2009 at 15:55, Mukerjee, Neiloy (Neil) < neil.muker...@alcatel-lucent.com> wrote: > After that comes up in the command line,