Keyword

K2 Search only pulling results from item title

  • Case Noland
  • Case Noland's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #83680 by Case Noland
I'm getting very limited results with the K2 search which is presenting issues for testers.Before I report this as a bug I wanted to see if anyone could point out and major oversights on my end.I have it configured properly but am not seeing results that I would expect from even a simple search.For example, check out:http://www.design3.net/by-software/unity-3d/unity-fundamentals?layout=categoryYou can see in the list plenty of names and descriptions with the keyword "Unity" as well as it listed in the tags and "software used" which is one of my extra fields.However a simple search for 'unity' in the search box brings up zero results.A search for 'intro' brings up one item from a different category.<b>My working assumption is that the search is currently only querying the item name field. How can I broaden this to include search results from the content description, tags and extra fields?</b>K2 is awesome but this is presenting some major challenges.Thanks!

Please Log in or Create an account to join the conversation.

  • Case Noland
  • Case Noland's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #83681 by Case Noland
Replied by Case Noland on topic K2 Search only pulling results from item title
Looking at the debug report it looks like it is trying to pull from all relevant tables - anyone have any idea why it is not pulling the results a user would expect.


#
SELECT i.*, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams
FROM jos_k2_items AS i
LEFT JOIN jos_k2_categories AS c
ON c.id = i.catid
WHERE i.published = 1
AND i.access &lt;= 0
AND i.trash = 0
AND c.published = 1
AND c.access &lt;= 0
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up &lt;= '2010-05-25 00:29:37' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down &gt;= '2010-05-25 00:29:37' )
AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('terrain')
ORDER BY i.id DESC
LIMIT 0, 10

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #83682 by Simon Wells
Replied by Simon Wells on topic K2 Search only pulling results from item title
Which search module are you using?
Have you tried using the Joomla Search Module instead ?

Simon
K2 Support

Please Log in or Create an account to join the conversation.

  • Case Noland
  • Case Noland's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #83683 by Case Noland
Replied by Case Noland on topic K2 Search only pulling results from item title
I'm using the K2 search within "mod_k2_tools".
I've tried using the standard Joomla search as well and this has the benefit of pulling results from joomla articles, etc. but still doesn't pull items I would expect unless I surround the word in quotations.

You can test at:
design3.net/about/how-it-works

This is an instance of the core joomla search. If you click the box for K2 items only at the bottom of advanced options you'll see the exact same behavior as the k2_tools version.

I'm starting to get client questions regarding this odd search behavior so all help is GREATLY appreciated.

Cheers!

Simon Wells (K2 Support) said:Which search module are you using? Have you tried using the Joomla Search Module instead ?

Simon
K2 Support

Please Log in or Create an account to join the conversation.

  • Case Noland
  • Case Noland's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 4 months ago #83684 by Case Noland
Replied by Case Noland on topic K2 Search only pulling results from item title
Any K2 Devs able to weigh in on this one?
Can I at least simulate quotes in all searches to ensure I get the max results?

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83685 by vivaldo moscatelli
Replied by vivaldo moscatelli on topic K2 Search only pulling results from item title
Maybe (waiting for a stable 2.3) the best solution would be to compose the search string with quotes included; I'm not so smart at it otherwise I would do it: I got the same problem too. Is there anyone could make this change?

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83686 by Simon Wells
Replied by Simon Wells on topic K2 Search only pulling results from item title
I just ran a test on random words that I had seen in your site.

material = 5 results
creation = 3
Expert Training = 1
Getting Art Assets (a title) = 1 title found, 1 any word
unity = 231

I note that the Training Search does not work at all.

Looks like it is working to me, unless i missed something.

Simon
K2 Support

Please Log in or Create an account to join the conversation.

  • Case Noland
  • Case Noland's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 months ago #83687 by Case Noland
Replied by Case Noland on topic K2 Search only pulling results from item title
Hey Simon, found the thread regarding downgrading to previous 2.1 k2.php and k2.xml files from google code repository and implemented yesterday. This worked for me.

community.getk2.org/forum/topics/bug-in-the-search-plugin?commentId=3536014%3AComment%3A41868

2.2 files (one with optional tag search) still pulls limited results.



Simon Wells (K2 Support) said:I just ran a test on random words that I had seen in your site.
material = 5 results
creation = 3
Expert Training = 1
Getting Art Assets (a title) = 1 title found, 1 any word
unity = 231

I note that the Training Search does not work at all.

Looks like it is working to me, unless i missed something.

Simon
K2 Support

Please Log in or Create an account to join the conversation.

  • Billy Lukito Joeswanto
  • Billy Lukito Joeswanto's Avatar
  • Offline
  • New Member
More
14 years 2 months ago #83688 by Billy Lukito Joeswanto
Replied by Billy Lukito Joeswanto on topic K2 Search only pulling results from item title
can you help me to search in k2 search box to find user?.. if i search "billy" it will be shown what k2 items that Billy has written.. thank you so much anoyone can help?.. btw k2 is very good plugin like this..:!!..:)

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #83689 by sosimple
Replied by sosimple on topic K2 Search only pulling results from item title
Hello guys, this may not be the most appropriate topic to post in but by the search term "K2 seach only in title" Google puts this on first page so I think i can share some info.

In my case I want K2 search module to search ONLY in article (item) title.  You need to change a line:

/componenets/com_k2/models/itemlist.php

799: $sql = " AND MATCH(i.title) ";

This may not work if you use joomfish, but I am sure you will figure it out.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum