Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Sborsody CreditAttribution: Sborsody commentedTodd,
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.
Comment #2
kenorb CreditAttribution: kenorb commentedMarked as duplicated of this: #1890006: OR conjunction doesn't work for fulltext filters
Related:
#1850838: Allow to switch conjunction for SearchApiViewsHandlerArgumentFulltext
#2082147: Need Support regarding the search process
http://drupal.stackexchange.com/questions/30770/is-it-possible-to-make-a...
http://drupal.stackexchange.com/questions/30294/use-createfilter-to-buil...
Comment #3
kenorb CreditAttribution: kenorb commentedComment #4
drunken monkeySorry 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!
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.
Comment #5
kenorb CreditAttribution: kenorb commented