Re: Date ranges for indexes constructed outside Solr

2009-11-29 Thread Chris Hostetter
: I'm working on an application that will build indexes directly using the : Lucene API, but will expose them to clients using Solr. I'm seeing I would suggest that you use SOlr in "embedded" mode to build your indexes -- that way you can insure schema compatibility of the index generated with

Re: Date ranges

2007-02-03 Thread Yonik Seeley
On 2/3/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : print c.search(q='a_dt:["2005-08-01T00:00:00Z" TO "2005-08-01T23:59:59Z"]') : : Note that without the quotes around the date in the range query, I get : an exception because the ':' causes the value to be truncated by the : queryparser. uh

Re: Date ranges

2007-02-03 Thread Michael Kimsal
Thanks Hoss - I'll give that a try - intuitively that sounds like it'll work (I'm still new to this - it's not second nature to me just yet!) On 2/3/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : However, when I run the following search : foobar date:[2005-08-01T00:00:00Z TO 2005-08-01T23:59

Re: Date ranges

2007-02-02 Thread Chris Hostetter
: print c.search(q='a_dt:["2005-08-01T00:00:00Z" TO "2005-08-01T23:59:59Z"]') : : Note that without the quotes around the date in the range query, I get : an exception because the ':' causes the value to be truncated by the : queryparser. uhh... i'm not sure what you're talking about dude ... it

Re: Date ranges

2007-02-02 Thread Chris Hostetter
: However, when I run the following search : foobar date:[2005-08-01T00:00:00Z TO 2005-08-01T23:59:59Z] : I get values back that do not have a date value in the 08/01/2005 range. unless you changed somethine else to mkae queries default to "all clauses mandatroy" (aka: and "AND" query) that's se

Re: Date ranges

2007-02-02 Thread Edward Summers
On Feb 2, 2007, at 11:36 PM, Erik Hatcher wrote: It also provides a specific scope for a connection, rather than it being possible for it to leak out (as an instance variable could). It hides the details of the Connection constructor also (maybe to cache instanced keyed by Solr URL?). Yea

Re: Date ranges

2007-02-02 Thread Erik Hatcher
On Feb 2, 2007, at 11:22 PM, Edward Summers wrote: On Feb 2, 2007, at 10:51 PM, Erik Hatcher wrote: Ruby experts - know how I can code Solr::Connection to work like this without an explicit method? (I'm still a Ruby newbie) What purpose does this block passing serve? Well, first and forem

Re: Date ranges

2007-02-02 Thread Edward Summers
On Feb 2, 2007, at 10:51 PM, Erik Hatcher wrote: Ruby experts - know how I can code Solr::Connection to work like this without an explicit method? (I'm still a Ruby newbie) What purpose does this block passing serve? //Ed

Re: Date ranges

2007-02-02 Thread Erik Hatcher
On Feb 2, 2007, at 5:29 PM, Yonik Seeley wrote: On 2/2/07, Michael Kimsal <[EMAIL PROTECTED]> wrote: I'm having a devil of a time getting date seaching to work properly. I've created a 'date' field in my schema, and I put values like "2005-08-01T23:59:59Z" in it. However, when I run the fol

Re: Date ranges

2007-02-02 Thread Yonik Seeley
On 2/2/07, Michael Kimsal <[EMAIL PROTECTED]> wrote: I'm having a devil of a time getting date seaching to work properly. I've created a 'date' field in my schema, and I put values like "2005-08-01T23:59:59Z" in it. However, when I run the following search foobar date:[2005-08-01T00:00:00Z TO 2