Unlike normal autocomplete behavior, you can't find a title like "This flower is green" by tying "flower". You can only find it by typing "This".

Is there a reason for this behavior?

Simon

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrabeemer’s picture

+1
This is by design AFAIK, but annoying none the less.

jaydub’s picture

Status: Active » Needs review
FileSize
626 bytes

I agree that that's a major annoyance. In my case I am searching on node titles that are automatically generated by Auto Nodetitle module and so every title is prefixed with a set string with the node specific portion of the title following. So I've added a patch to make the autocomplete search for the string regardless of placement in the node title. This is trivial to be honest and since the queries already have to use LOWER() I doubt the performance is going to be markedly different since LOWER() negates the effect of indexes in MySQL anyway.

harrrrrrr’s picture

patch #2 works & no performace issue

thx

Katrina B’s picture

Subscribing.

jaydub’s picture

Status: Needs review » Reviewed & tested by the community

Setting to reviewed and tested unless there are any objections.

ezra-g’s picture

Version: 6.x-2.9 » 7.x-2.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)
tobby’s picture

I have rolled a patch for the 7.x-2.x-dev version of nodequeue that provides the same fix.

amateescu’s picture

Status: Patch (to be ported) » Needs review
FileSize
506 bytes

In 7.x we should use db_like().

amateescu’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.