lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Search combination?
Date Tue, 02 Jun 2009 21:18:18 GMT

Are you trying to find items with size > 7?  If so, 7* is not the way to do that - 7* will
find items whose "size" field starts with "7", e.g. 7, 70, 71, 72, 72, 73...79, 700, 701....


What you may want is an open-ended range query: q=size:[7 TO *] (I think that's the correct
syntax, but please double-check it)

Also, I assume you already indexed file extensions into a separate "extension" field.
 
Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Jörg Agatz <joerg.agatz@googlemail.com>
> To: solr-user@lucene.apache.org
> Sent: Tuesday, June 2, 2009 12:18:42 PM
> Subject: Search combination?
> 
> Hi users...
> 
> i have a Problem...
> 
> i will search for:
> 
> http://192.168.105.54:8983/solr/itas?q=size:7*&extension:db
> 
> i mean i search for all documents they are size 7* and extension:pdf,
> 
> But it dosent work
> i get some other files, with extension doc ore db
> what is Happens about ?
> 
> Jörg


Mime
View raw message