Hi, If this is in the docs somewhere I'm sorry, please point me there; I haven't been able to find what I need either in the provided docs, or on this list. That might be due to my lack of understanding of search software, though. I have two sites, and try to index them with omindex according to the example in docs/overview.txt in the Omega distribution. However, when I index the second site, omindex prints "Indexing ...", and then "Deleted document #x" for all the documents indexed in the first pass. True enough, omega does not find matches in the first site, just the second, when I try searching. I also wonder about how to specify the site when searching; Google's "site:..." syntax seems not to be supported. My setup is very simple: I have two directories with a number of PDF files in each, and would like to search in them separately. I use release 0.9.2. Apart from the site issues, Xapian/Omega seems to work very well. :-) Martin -- "An ideal world is left as an exercise to the reader." -Paul Graham, On Lisp
On Tue, Dec 20, 2005 at 11:59:19AM +0100, Martin Thornquist wrote:> If this is in the docs somewhere I'm sorry, please point me there; I > haven't been able to find what I need either in the provided docs, or > on this list. That might be due to my lack of understanding of search > software, though.It's a bug in 0.9.2 - James fixed it here: http://thread.gmane.org/gmane.comp.search.xapian.cvs/2099 So applying this patch should fix this: http://svn.xapian.org/trunk/xapian-applications/omega/omindex.cc?rev=6355&r1=6354&r2=6355&makepatch=1&diff_format=u I'd rather that automatic pruning of removed documents from the index still worked in the subsite case, so this switch wasn't required, so if I can work out a good way to do this the option may not appear in 0.9.3. But it's a good fix for now (just don't be too suprised if the option disappears 0.9.3).> I also wonder about how to specify the site when searching; Google's > "site:..." syntax seems not to be supported.Assuming the two sites have different hostnames, you just need to add $set{boolprefix,site,H} to the top of your OmegaScript query template. Then it should work as you expect. Cheers, Olly