I'm replacing the search on http://jobs.perl.org/ with Elastic
Search. So far everything is working very nicely - it's been a
pleasure to work with (well, except the obscure errors while I was
learning the query syntax).
I loaded all the old/expired jobs into the index, too -- the intention
was to be able to do a "more like this" query to help the user find an
active similar job when requesting details for a job that's expired or
been removed from the site by the poster.
To do this I added an 'active: [0 | 1]' flag to each document and in
regular search I just filter on this; it works great.
However -- I can't figure out how to do the filter on the mlt query.
Is it not possible?
Yes - I was trying to use the 'mlt' query (with the id of the old
posting). Clint pointed out to me on IRC that I need to do it with a
regular search to combine it with other filters. I changed the code
to just build the "like_text" and pass it in as a regular filter and
all is well now. Thanks!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.