RE: ord on TrieDateField always returning max

2010-01-09 Thread David Smiley @MITRE.org
changed in Solr prior to the 1.4 release but after they went > to press. Trie fields are mentioned, as is the new ms() function, but i > don't see anything explicitly addressing the snag you hit ... yet. It is > a wiki afterall, so you can feel free to add things as you find th

RE: ord on TrieDateField always returning max

2010-01-08 Thread Chris Hostetter
: My 'inspiration' for the ord method was actually the Solr 1.4 Enterprise : Search server book. Page 126 has a section 'using reciprocals and rord : with dates'. You should let those guys know what's up! 1) Although it's not 100% obvious, those examples in the book use the "DateField" type --

Re: ord on TrieDateField always returning max

2010-01-06 Thread Yonik Seeley
> dates'. You should let those guys know what's up! > > Thanks, > Kallin. > > -Original Message- > From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley > Sent: Wednesday, January 06, 2010 11:23 AM > To: solr-user@lucen

RE: ord on TrieDateField always returning max

2010-01-06 Thread Nagelberg, Kallin
You should let those guys know what's up! Thanks, Kallin. -Original Message- From: ysee...@gmail.com [mailto:ysee...@gmail.com] On Behalf Of Yonik Seeley Sent: Wednesday, January 06, 2010 11:23 AM To: solr-user@lucene.apache.org Subject: Re: ord on TrieDateField always returning ma

Re: ord on TrieDateField always returning max

2010-01-06 Thread Yonik Seeley
Besides using up a lot more memory, ord() isn't even going to work for a field with multiple tokens indexed per value (like tdate). I'd recommend using a function on the date value itself. http://wiki.apache.org/solr/FunctionQuery#ms -Yonik http://www.lucidimagination.com On Wed, Jan 6, 2010 at

ord on TrieDateField always returning max

2010-01-06 Thread Nagelberg, Kallin
Hi everyone, I've been trying to add a date based boost to my queries. I have a field like: When I look at the datetime field in the solr schema browser I can see that there are 9051 distinct dates. When I try to add the parameter to my query like: bf=ord(datetime) (on a dismax query) I alw