updated info

Brian Harris - April 23, 2008 - 23:23
Project:Live Search
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

So i just installed the plugin, and activated the block -- using the compact block and ajax firing at the default value. when type in a search term and pause, i can see the circular search animation fire but no results turn up. if i hit enter i.e. to go to the search page, nodes are found. when i go into the admin -- logs -- top search phrases, it shows that when i type a search phrase into the box an let ajax handle it, the search phrase comes up as "%keys (%type)." (show in my logs as Search: %keys (%type).)

any idea whats going on here?

Thanks.

#1

Brian Harris - April 24, 2008 - 16:42
Title:Firing off wrong request??» updated info

I just opened firebug while using the search and it does show "GET: http://mysite.com/livesearch/node/somesearchterm" and it does return { "found": true, "results": "\x3cdl class=\"search-results\"\x3e \x3cdt class=\"ti etc..."

but still nothing showing up. could css have anything to do with it??

#2

mokargas - May 23, 2008 - 03:20

I've also got this problem, I'm using jQuery 1.2.3 (just embedded in the theme) however, perhaps that's the problem?

#3

manarth - June 21, 2008 - 16:53

There is a bug in livesearch's watchdog function call, which prevents the %keys and $type variables being properly substituted.

This is raised as #273285: Livesearch doesn't log data to watchdog

This doesn't solve your issue, but explains why you see the message "Search: %keys (%type)." in admin -- logs -- top search phrases.

#4

Brian Harris - June 23, 2008 - 19:00

I found out why the search results were not showing up. For some reason the div below wasn't being created.

<div id="live-search-results"></div>

i manually added an empty div below the call for the search block in my theme and the results now show. It looks like crap and requires alot of extra css and some hacking of javascript at least for me to get it how i want it to look (exactly like facebooks search).

Hope this helps.

 
 

Drupal is a registered trademark of Dries Buytaert.