Search Does Not Return Results When Typing in Entry Title as a Keyword
Hi,
We have a site where if we type the title of an entry as a keyword we get no results. The title search weight is set to 3 for this collection. We tried switching to search mode any and we still get no results.
Thanks.
Replies
Low 26 Dec 2013 10:05
Can you please give me:
- Your EE, LS and PHP versions
- The code of your Form tag
- The opening tag of your Results tag
- An example of a search URI that doesn't give you the right results
- A screenshot of the collection settings
You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.
Stoyan Vasilev 26 Dec 2013 19:05
Sure.
EE: 2.7.0
PHP: 5.3.5 in Staging/Production environments and 5.3.27 in my local environment.
LS: 2.3.1
Here is a pastie of the entire search template:
http://pastie.org/private/gnqvzbqcx2n...
Search URI:
/archive/search/?search_mode=all&keywords=Commencement&collection=5
I also tried removing the search mode parameter from the URI (and the template), setting the search mode settings to Any Word and I get the same results.
Commencement is the title of an entry from the Issues channel.
Screenshot of the collection settings:
Thanks.
Low 27 Dec 2013 08:42
Before anything else, I'd recommend you upgrade Low Search to the current version: v3.0.3. Can you do that and see if that helps?
Stoyan Vasilev 27 Dec 2013 16:01
Absolutely. Can I just replace the files without this having any (negative) impact on the content and structure of the DB?
Stoyan Vasilev 27 Dec 2013 18:16
I upgraded Low Search to the latest version. The problem is still there.
Low 27 Dec 2013 18:55
Then I'll need to take a look myself. Can you send superadmin login credentials to hi at gotolow dot com?
Stoyan Vasilev 27 Dec 2013 19:52
I shared a Google Doc with the credentials to the EE staging site. Let me know if you need FTP credentials as well.
Low 27 Dec 2013 20:08
Thanks.I need to turn on template debugging and the output profiler, but that’s set in the config file, so I cannot override it via the CP. Can you fix that, please? Or indeed give me FTP access so I can do it myself?
Low 27 Dec 2013 22:28
After a closer look, it appears the entries are returned, but the Results tag has conditionals in it so they are hidden. I've added this code to the Results loop:
...and that shows the entry is returned in the source code. So, you might want to check the conditionals and code in your Results tag.
Stoyan Vasilev 29 Dec 2013 15:33
Hi,
Thanks for the help debugging this. It appears that the problem is actually JS-related -- we have a script which renders the search results in a way similar to CSS columns, which for some reason does not show anything when there is only 1 result.
Thanks for your help and apologies that the problem was not LS related.
St