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.
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
Comment | File | Size | Author |
---|---|---|---|
#8 | 872444-nodequeue_autocomplete_fix.patch | 506 bytes | amateescu |
#7 | nodequeue_d7_autocomplete-872444-6.patch | 718 bytes | tobby |
#2 | nodequeue.module.872444.patch | 626 bytes | jaydub |
Comments
Comment #1
jrabeemer CreditAttribution: jrabeemer commented+1
This is by design AFAIK, but annoying none the less.
Comment #2
jaydub CreditAttribution: jaydub commentedI 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.
Comment #3
harrrrrrr CreditAttribution: harrrrrrr commentedpatch #2 works & no performace issue
thx
Comment #4
Katrina B CreditAttribution: Katrina B commentedSubscribing.
Comment #5
jaydub CreditAttribution: jaydub commentedSetting to reviewed and tested unless there are any objections.
Comment #6
ezra-g CreditAttribution: ezra-g commentedCommitted. Thanks! http://drupal.org/cvs?commit=471702
Comment #7
tobby CreditAttribution: tobby commentedI have rolled a patch for the 7.x-2.x-dev version of nodequeue that provides the same fix.
Comment #8
amateescu CreditAttribution: amateescu commentedIn 7.x we should use db_like().
Comment #9
amateescu CreditAttribution: amateescu commentedCommited to 7.x.
http://drupalcode.org/project/nodequeue.git/commit/954fa2c