for faceted search example: something between $10-$20

CommentFileSizeAuthor
#3 apachesolr_range.patch2 KBvladimir.dolgopolov

Comments

asak’s picture

Just what i'm looking for. subscribing.

Using Faceted Search we can get it to search pre-defined ranges. what's needed is a dynamic range.

David Lesieur’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Marking #315500: Support +/- for numerical/date fields as duplicate. That post describes more use cases, though.

vladimir.dolgopolov’s picture

Status: Active » Needs review
StatusFileSize
new2 KB

Here is the patch to get a range queries functionality.
Range Searches

pwolanin’s picture

I'm not sure the regex is right here - a range query can have extra whitespace inside and still be valid.

pwolanin’s picture

also, the original code seems to be doing an entire unnecessary preg_replace to remove leading/trailing " rather than just using the original capture pattern.

Actually, I think the original code has some serious logic errors - or at the least it is very difficult to understand why it works if you have multiple values for a field, some of which are quoted and some not.

pwolanin’s picture

Status: Needs review » Closed (duplicate)
cyberswat’s picture

Both of the duplicate issues have been fixed ... does this mean range searches are now supported?