[Xapian-discuss] Very confused please help

John Wards j.wards at sportnetwork.net
Thu Jan 12 13:25:42 GMT 2006


Hi All,

I run a property site and use Omega to do the searching on the address
with boolean to filter on a county, price range, sold/underoffer basis.

But for the life of me I can not figure out how to get Omega to do the
sorting by price asc/desc.

Currently I pass hitsperpage=1000 to Omega and loop through storing up
the results, which is fine for <1000 or possibly upto 3000...but it
understandably takes an age over that.

I use an XML template on omega and pass it to PHP to do the ordering.

I would love to be able to use the PHP bindings but I can't get my head
around the examples...if someone could give me an basic example on how
to do the following in PHP it would help a heap!

My database is made up using the following scriptindex file:

id: field=id
address: field=caption
address: index
countyid: boolean=XL
price: field
image: field
description: field=sample
link: field=url
underoffer: boolean=XUNDER
sold: boolean=XSOLD
added: field date=unix
range: boolean=XRANGE
propid: field

The search would be something like this:

(AND on by default rather than OR)

address: "fir tree"
countyid: XL19
sold: XSOLD0
sold: XUNDER0

Thanks (a most confused)
John




More information about the Xapian-discuss mailing list