search_api/includes/query.inc
440 @todo Add fourth mode for complicated expressions, e.g.: »"vanilla ice" OR (love NOT hate)«
458  protected function parseKeys($keys, $mode)  // add complex parser here.

I am working on a project using Drupal 7 that needs this functionality. Has anyone moved this @todo forward? If this is not already in progress, I will proceed with the following.

I have used the apachesolr module in Drupal 6 for complex queries. My intention is to refactor the complex parse mode from the apachesolr module into search_api/includes/query.inc.

Comments

Sborsody’s picture

Todd,
Have you done any work on this since you created this ticket? I found that @todo while investigating solutions to the same problem.

Basically the criticism that arose was that people are used to Google query style. It would be great to see this module provide a plugin type system for query parsing.

kenorb’s picture

Assigned: Todd Herman » Unassigned
drunken monkey’s picture

Sorry for not seeing this earlier!

No, there's currently no work (that I know of) being done to implement this. So, if anyone is (still) interested, please go ahead!

Basically the criticism that arose was that people are used to Google query style. It would be great to see this module provide a plugin type system for query parsing.

That's an excellent idea, thanks! While probably not easily possible in the current D7 branch, we should definitely consider it for the D8 port.
See #2064637: Add a plugin system for query parsing.

kenorb’s picture

Priority: Normal » Minor
Issue summary: View changes