You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2009/08/15 16:51:20 UTC

svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Author: yonik
Date: Sat Aug 15 14:51:20 2009
New Revision: 804477

URL: http://svn.apache.org/viewvc?rev=804477&view=rev
Log:
add back timestamps to more example docs

Modified:
    lucene/solr/trunk/example/exampledocs/hd.xml
    lucene/solr/trunk/example/exampledocs/mem.xml
    lucene/solr/trunk/example/exampledocs/sd500.xml
    lucene/solr/trunk/example/exampledocs/vidcard.xml

Modified: lucene/solr/trunk/example/exampledocs/hd.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/exampledocs/hd.xml?rev=804477&r1=804476&r2=804477&view=diff
==============================================================================
--- lucene/solr/trunk/example/exampledocs/hd.xml (original)
+++ lucene/solr/trunk/example/exampledocs/hd.xml Sat Aug 15 14:51:20 2009
@@ -27,6 +27,7 @@
   <field name="price">92</field>
   <field name="popularity">6</field>
   <field name="inStock">true</field>
+  <field name="timestamp">NOW</field>
 </doc>
 
 <doc>
@@ -41,6 +42,7 @@
   <field name="price">350</field>
   <field name="popularity">6</field>
   <field name="inStock">true</field>
+  <field name="timestamp">NOW</field>
 </doc>
 </add>
 

Modified: lucene/solr/trunk/example/exampledocs/mem.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/exampledocs/mem.xml?rev=804477&r1=804476&r2=804477&view=diff
==============================================================================
--- lucene/solr/trunk/example/exampledocs/mem.xml (original)
+++ lucene/solr/trunk/example/exampledocs/mem.xml Sat Aug 15 14:51:20 2009
@@ -26,6 +26,7 @@
   <field name="price">185</field>
   <field name="popularity">5</field>
   <field name="inStock">true</field>
+  <field name="timestamp">NOW</field>
 </doc>
 
 <doc>
@@ -37,6 +38,7 @@
   <field name="price">74.99</field>
   <field name="popularity">7</field>
   <field name="inStock">true</field>
+  <field name="timestamp">NOW</field>
 </doc>
 
 <doc>
@@ -49,7 +51,7 @@
   <!-- note: price is missing on this one -->
   <field name="popularity">5</field>
   <field name="inStock">true</field>
-
+  <field name="timestamp">NOW</field>
 </doc>
 
 

Modified: lucene/solr/trunk/example/exampledocs/sd500.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/exampledocs/sd500.xml?rev=804477&r1=804476&r2=804477&view=diff
==============================================================================
--- lucene/solr/trunk/example/exampledocs/sd500.xml (original)
+++ lucene/solr/trunk/example/exampledocs/sd500.xml Sat Aug 15 14:51:20 2009
@@ -30,4 +30,5 @@
   <field name="price">329.95</field>
   <field name="popularity">7</field>
   <field name="inStock">true</field>
+  <field name="timestamp">NOW</field>
 </doc></add>

Modified: lucene/solr/trunk/example/exampledocs/vidcard.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/exampledocs/vidcard.xml?rev=804477&r1=804476&r2=804477&view=diff
==============================================================================
--- lucene/solr/trunk/example/exampledocs/vidcard.xml (original)
+++ lucene/solr/trunk/example/exampledocs/vidcard.xml Sat Aug 15 14:51:20 2009
@@ -31,6 +31,7 @@
   <field name="price">479.95</field>
   <field name="popularity">7</field>
   <field name="inStock">false</field>
+  <field name="timestamp">NOW/DAY</field>
 </doc>
   <!-- yes, you can add more than one document at a time -->
 <doc>
@@ -48,5 +49,6 @@
   <field name="price">649.99</field>
   <field name="popularity">7</field>
   <field name="inStock">false</field>
+  <field name="timestamp">NOW/DAY</field>
 </doc>
 </add>



Re: svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: OK - any suggestions on what field to use for our example docs?  It

i changed it to be manufacturedate_dt since that fits with the existing 
scheme ... the data is all made up, but so is all hte rest of our data.


-Hoss


Re: svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Tue, Aug 18, 2009 at 2:30 PM, Chris
Hostetter<ho...@fucit.org> wrote:
> We have other date fields we can use to show off date features.

OK - any suggestions on what field to use for our example docs?  It
could either be a dynamic field or a normal one... but I'm drawing a
creative blank for the name.

-Yonik
http://www.lucidimagination.com

Re: svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: If you think "NOW" is a bad date value for the exampledocs, we could
: change them to specific dates, but I'd rather avoid any defaults in
: the example schema.

but that's the whole point of the field ... that's why it's called 
"timestamp" ... it provides a timestamp of when a document was indexed.

I'd rather just leave the timestampe field completley commented out with 
the comment about how it can be used if you uncomment. leaving a timestamp 
field in w/o a default value, and putting values into doc files is relaly 
confusing.

We have other date fields we can use to show off date features.




-Hoss


Re: svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Tue, Aug 18, 2009 at 2:03 PM, Chris
Hostetter<ho...@fucit.org> wrote:
> : URL: http://svn.apache.org/viewvc?rev=804477&view=rev
> : Log:
> : add back timestamps to more example docs
>
> I'm confused ... why add NOW as a hardcoded value to all of these files?
> ... why not put 'default="NOW"' back into the schema.xml?  (that was the
> whole point of the timestamp field in the example)

It's part of having a fast example schema - it doesn't matter if the
example documents are slow, but it does matter if the example schema
is slow because it's doing stuff that others may not care about.

Someone should be able to use the new example schema as-is, with their
own dynamic fields or whatever, and get near-optimal performance.

If you think "NOW" is a bad date value for the exampledocs, we could
change them to specific dates, but I'd rather avoid any defaults in
the example schema.

-Yonik
http://www.lucidimagination.com

Re: svn commit: r804477 - in /lucene/solr/trunk/example/exampledocs: hd.xml mem.xml sd500.xml vidcard.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: URL: http://svn.apache.org/viewvc?rev=804477&view=rev
: Log:
: add back timestamps to more example docs

I'm confused ... why add NOW as a hardcoded value to all of these files? 
... why not put 'default="NOW"' back into the schema.xml?  (that was the 
whole point of the timestamp field in the example)


-Hoss