# Serach with Xapian

**URL:** <https://www.ruby-forum.com/t/serach-with-xapian/178112>\
**Category:** Rails\
**Created:** [October 29, 2009, 11:09am UTC](https://www.ruby-forum.com/t/serach-with-xapian/178112 "2009-10-29T11:09:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![massi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b9e5f3/32.png) [@massi](https://www.ruby-forum.com/u/massi)\
**Post date:** [October 29, 2009, 11:09am UTC](https://www.ruby-forum.com/t/serach-with-xapian/178112/1 "2009-10-29T11:09:36Z")

</div>

hey ,

am looking for xapian syntax to do a range search

in my code i have

class Table \< AR  
acts\_as\_xapian :texts =\> [:title],  
:values =\> [[ :left, 0, “left”, :number  
],[:right, 1, “right”, :number] ],  
:terms =\> [ [: left, ‘L’,  
“left”],[:right, ‘R’, “right”]]  
end

and when a launch the following search in console i have an execption

ActsAsXapian::Search.new([Table], ‘left:1…100 AND right:30…200’,  
:limit =\> 100000).result

exception :

RuntimeError: QueryParserError: Unknown range operation  
from  
/Users/mecharek/tm/vendor/plugins/acts\_as\_xapian/lib/acts\_as\_xapian.rb:367:in  
`parse_query' from /Users/mecharek/tm/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb:367:in`initialize’  
from (irb):3:in `new’

someone can help me ☹

thx
