Re: Newbie question about why represent timestamps as "float" values

2017-10-10 Thread Erick Erickson
Hold it. "date", "tdate", "pdate" _are_ primitive types. Under the covers date/tdate are just a tlong type, newer Solrs have a "pdate" which is a point numeric type. All that these types do is some parsing up front so you can send human-readable data (and get it back). But under the covers it's

Re: Newbie question about why represent timestamps as "float" values

2017-10-10 Thread Michael Kuhlmann
While you're generally right, in this case it might make sense to stick to a primitive type. I see "unixtime" as a technical information, probably from System.currentTimeMillis(). As long as it's not used as a "real world" date but only for sorting based on latest updates, or chosing which

Re: Newbie question about why represent timestamps as "float" values

2017-10-10 Thread alessandro.benedetti
There was time ago a Solr installation which had the same problem, and the author explained me that the choice was made for performance reasons. Apparently he was sure that handling everything as primitive types would give a boost to the Solr searching/faceting performance. I never agreed ( and

Re: Newbie question about why represent timestamps as "float" values

2017-10-09 Thread Erick Erickson
What Hoss said, and in addition somewhere some custom code has to be translating things back and forth. For dates, Solr wants -MM-DDTHH:MM:SSZ as a date string it knows how to deal with. That simply couldn't parse as a float type so there's some custom code that transforms dates into a float

Re: Newbie question about why represent timestamps as "float" values

2017-10-09 Thread Chris Hostetter
: Here is my question. In schema.xml, there is this field: : : : : Question: why is this declared as a float datatype? I'm just looking : for an explanation of what is there – any changes come later, after I : understand things better. You would hvae to ask the creator of that

Newbie question about why represent timestamps as "float" values

2017-10-09 Thread William Torcaso
I have inherited a working SOLR installation, that has not been upgraded since solr 4.0. My task is to bring it forward (at least 6.x, maybe 7.x). I am brand new to SOLR. Here is my question. In schema.xml, there is this field: Question: why is this declared as a float