For reference, the LucidWorks Search query parser has two MLT features:

1. Like terms – does MLT on a list of terms.

For example:

like:(Four score "and" seven years ago our fathers brought forth)

See:
http://docs.lucidworks.com/display/lweug/Like+Term+Keyword+Option

This is effectively an OR operator on the terms.

2. Like document – does MLT on a Solr document, given it’s id:

For example:

Washington like:"http://cnn.com"; -"New York"

See:
http://docs.lucidworks.com/display/lweug/Like+Document+Term+Keyword+Option

-- Jack Krupansky

From: Tommaso Teofili 
Sent: Thursday, March 6, 2014 6:23 AM
To: [email protected] 
Subject: Suggestions about writing / extending QueryParsers

Hi all, 

I'm thinking about writing/extending a QueryParser for MLT queries; I've never 
really looked into that code too much, while I'm doing that now, I'm wondering 
if anyone has suggestions on how to start with such a topic.
Should I write a new grammar for that ? Or can I just extend an existing 
grammar / class?

Thanks in advance,
Tommaso

Reply via email to