shenli at slangwho.com
2011-Jan-11 18:41 UTC
[Xapian-devel] [Need Help!] Problem about Omega Configuration
Hi there, I'm using Xapian for the search on our website, and recently I've been working on improving the search results with Omega. However, I followed exactly the installation guide but when I tried to test it with the command: /usr/lib/omega/bin/omega 'P=my search terms' HITSPERPAGE=10 I got this error: Content-Type: text/html Content-Type: text/html Exception: Couldn't read format template `query' (No such file or directory) However the template 'query' is right in the template directory, and the path setting is correct. Thus, I couldn't figure out why this problem occured and have no idea of how to fix this. If anyone's got a clue please let me know, and I really appreciate your kindly help! DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this email. If you have received this email in error please notify the Slangwho legal team at legal [at] slangwho.com and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. If verification is required please request a hard-copy version.
Olly Betts
2011-Jan-13 03:56 UTC
[Xapian-devel] [Need Help!] Problem about Omega Configuration
On Tue, Jan 11, 2011 at 01:41:29PM -0500, shenli at slangwho.com wrote:> /usr/lib/omega/bin/omega 'P=my search terms' HITSPERPAGE=10 > > I got this error: > > Content-Type: text/html > > Content-Type: text/htmlI've committed a fix for the double headers here.> Exception: Couldn't read format template `query' (No such file or directory) > > However the template 'query' is right in the template directory, and > the path setting is correct.Clearly omega thinks otherwise!> Thus, I couldn't figure out why this problem occured and have no idea > of how to fix this. If anyone's got a clue please let me know, and I > really appreciate your kindly help!I would suggest running omega under strace (assuming your platform has strace - you don't seem to say what platform you are using) and looking for where it tries to open the query template to see what path it is using.> DISCLAIMER: This message contains confidential information [...]Please don't send mail with such disclaimers to public mailing lists. At best they make no sense; at worst people may decide it's safest not to reply to your "confidential" mail. Cheers, Olly