timestamp is of type: <field name="timestamp" type="tdate" indexed="true" stored="true" default="NOW" multiValued="false"/>
On Wed, Mar 2, 2011 at 8:11 PM, Ofer Fort <o...@tra.cx> wrote: > you are correct that my query is a tange one, probably should have > mentioned it in the first post. > this is the debug data: > > <?xml version="1.0" encoding="UTF-8"?> > <response> > > <lst name="responseHeader"> > <int name="status">0</int> > <int name="QTime">4173</int> > <lst name="params"> > <str name="debugQuery">on</str> > <str name="indent">on</str> > > <str name="start">0</str> > <str name="q">timestamp:[2011-02-01T00:00:00Z TO NOW] AND oferiko</str> > <str name="version">2.2</str> > <str name="rows">10</str> > </lst> > </lst> > <result name="response" numFound="0" start="0"/> > <lst name="debug"> > > <str name="rawquerystring">timestamp:[2011-02-01T00:00:00Z TO NOW] AND > oferiko</str> > <str name="querystring">timestamp:[2011-02-01T00:00:00Z TO NOW] AND > oferiko</str> > <str name="parsedquery">+timestamp:[1296518400000 TO 1299069584823] > +contents:oferiko</str> > <str name="parsedquery_toString">+timestamp:[1296518400000 TO > 1299069584823] +contents:oferiko</str> > <lst name="explain"/> > <str name="QParser">LuceneQParser</str> > > <lst name="timing"> > <double name="time">4171.0</double> > <lst name="prepare"> > <double name="time">0.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">0.0</double> > </lst> > > <lst name="org.apache.solr.handler.component.FacetComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > </lst> > </lst> > > <lst name="process"> > <double name="time">4171.0</double> > <lst name="org.apache.solr.handler.component.QueryComponent"> > <double name="time">4171.0</double> > </lst> > <lst name="org.apache.solr.handler.component.FacetComponent"> > <double name="time">0.0</double> > > </lst> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.HighlightComponent"> > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.StatsComponent"> > > <double name="time">0.0</double> > </lst> > <lst name="org.apache.solr.handler.component.DebugComponent"> > <double name="time">0.0</double> > </lst> > </lst> > </lst> > </lst> > > </response> > > > > On Wed, Mar 2, 2011 at 7:48 PM, Yonik Seeley > <yo...@lucidimagination.com>wrote: > >> On Wed, Mar 2, 2011 at 12:11 PM, Ofer Fort <ofer...@gmail.com> wrote: >> > Hey all, >> > I have an index with a lot of documents with the term X and no documents >> > with the term Y. >> > If i query for X it take a few seconds and returns the results. >> > If I query for Y it takes a millisecond and returns an empty set. >> > If i query for Y AND X it takes a few seconds and returns an empty set. >> >> This depends on the specifics of what X is. Some query types must >> generate all hits first internally - an example is a multi-term query >> (like numeric range query, etc) that matches many terms. >> >> Can you show the generated query (i.e. add debugQuery=true to the >> request)? >> >> -Yonik >> http://lucidimagination.com >> > >