lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@odoko.co.uk>
Subject Re: how to do a range search not on ordered data (text type)
Date Sun, 02 Dec 2012 13:41:03 GMT
You can't. I guess you could extract those numbers from your text and
index them into a separate numeric field.

Upayavira

On Sun, Dec 2, 2012, at 07:08 AM, jend wrote:
> Hi,
> Im building a solr install which has a blurb of data in a field
> "description".
> 
> In that field there are sentences such as "This property has a block size
> of
> 770sqm." or "1200sqm block blah blah blah".
> 
> Its a text field obviously.
> 
> How can I construct a search as follows.
> 
> Someone wants to search for properties 
> with the block size over 900sqm.
> 
> with a block size under 1200sqm.
> 
> with a block size of between 550 and 1500sqm.
> 
> Its essentially a text string but can you range values in text somehow?
> 
> Thanks in advance.
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-do-a-range-search-not-on-ordered-data-text-type-tp4023761.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message