[Xapian-tickets] [Xapian] #668: File/MIME Type Search Filter for Omega
Xapian
nobody at xapian.org
Mon Mar 9 11:13:13 GMT 2015
#668: File/MIME Type Search Filter for Omega
-------------------------+-------------------------------
Reporter: bramvdh | Owner: olly
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Omega | Version:
Severity: normal | Resolution: worksforme
Keywords: | Blocked By:
Blocking: | Operating System: All
-------------------------+-------------------------------
Changes (by olly):
* status: reopened => closed
* resolution: => worksforme
Comment:
That's also already supported - e.g. to have {{{type:pdf}}} map to a
filter by term {{{Epdf}}} just add this to your query template:
{{{
$setmap{boolprefix,type,E}
}}}
If you want an advanced search form, you can just use {{{<select>}}} or
radio buttons or whatever to generate the {{{B=Epdf}}}. See the
documentation for {{{$filterterms}}} for an example of generating one
dynamically:
http://xapian.org/docs/omega/omegascript.html
--
Ticket URL: <http://trac.xapian.org/ticket/668#comment:3>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list