Keyword

K2 tools Search Module

  • Gamal Andrews
  • Gamal Andrews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #83579 by Gamal Andrews
K2 tools Search Module was created by Gamal Andrews
I am unable to get results from k2 search. How do I solve this problem?

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

More
14 years 11 months ago #83580 by william white
Replied by william white on topic K2 tools Search Module
How are you setting up the search module?
Do you have it set to search all categories or specific ones?
Is this on the site in your profile? I see its at the bottom of the page under the content area.
Try allowing it to search all categories first

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

  • Gamal Andrews
  • Gamal Andrews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #83581 by Gamal Andrews
Replied by Gamal Andrews on topic K2 tools Search Module
I am new to K2. All I did was to add the module and select search box. I did not specify what to look for so I am assuming it will search for anything. I am still not getting results.

William White said:How are you setting up the search module? Do you have it set to search all categories or specific ones?
Is this on the site in your profile? I see its at the bottom of the page under the content area.
Try allowing it to search all categories first

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

More
14 years 11 months ago #83582 by william white
Replied by william white on topic K2 tools Search Module
deactivate the module you have now
Use the Joomla Module Manager
Select New - K2 tools
Make sure that all is checked on the left and search box is selected in the picklist on the right
Select the position you want it in
Leave everything else default and publish
see attached png for my settings that work

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

  • Gamal Andrews
  • Gamal Andrews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #83583 by Gamal Andrews
Replied by Gamal Andrews on topic K2 tools Search Module
This is exactly what I was doing. I tried it again and still no luck. Can it be because I have the view tags disabled? I will really love for this to work. Also I installed the gallery plugin and I am still unable to use the gallery section in the items.

William White said:deactivate the module you have now Use the Joomla Module Manager
Select New - K2 tools
Make sure that all is checked on the left and search box is selected in the picklist on the right
Select the position you want it in
Leave everything else default and publish
see attached png for my settings that work

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

More
14 years 11 months ago #83584 by william white
Replied by william white on topic K2 tools Search Module
Did you install sig pro?
Its eaisest to use and get to work. There is much discussion in this forum about sig that you can search for.
i sent you pm

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

More
14 years 11 months ago #83585 by Case Noland
Replied by Case Noland on topic K2 tools Search Module
I'm also getting odd results with the K2 search.
I have it configured properly but am not seeing results that I would expect from even a simple search.

For example, check out:
www.design3.net/by-software/unity-3d/unity-fundamentals?layout=category

You 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.

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 item description, tags and extra fields?

Thanks!

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

More
14 years 11 months ago #83586 by william white
Replied by william white on topic K2 tools Search Module
Try putting unity in quotes
it works then
im not sure whats up in the code but i think it was fixed in 2.3 beta which i am using
let me test it and i will get back
pm a friend request to me

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

More
14 years 11 months ago #83587 by william white
Replied by william white on topic K2 tools Search Module
WTF
2.3 search seems flakey also
I can search for values in xtra fields and it will find (this is service) (is service) and (sdgf) all without quotes
but
it will not find (sdgf) wether quoted or not

It will find (buffy) and (Honea Path) which is in fulltext
but
It will not find ("E.T.") which are quoted in the fulltext field

Regular expressions are difficult to say the least. I tried passing escapes with various combinations of the above with no luck. Again REGULAR EXPRESSIONS ARE DIFFICULT

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

  • Gamal Andrews
  • Gamal Andrews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #83588 by Gamal Andrews
Replied by Gamal Andrews on topic K2 tools Search Module
You are correct case. It seems only to be searching the items name. How do you broaden it to everything? Thanks again William, you got me this far.

William White said:WTF 2.3 search seems flakey also
I can search for values in xtra fields and it will find (this is service) (is service) and (sdgf) all without quotes
but
it will not find (sdgf) wether quoted or not

It will find (buffy) and (Honea Path) which is in fulltext
but
It will not find ("E.T.") which are quoted in the fulltext field

Regular expressions are difficult to say the least. I tried passing escapes with various combinations of the above with no luck. Again REGULAR EXPRESSIONS ARE DIFFICULT

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

More
14 years 11 months ago #83589 by Case Noland
Replied by Case Noland on topic K2 tools Search Module
Can anyone explain to me what quotes do to effect a single word query? My previous understanding was that they force a specific string so the search would look only for "one two three four" instead of any variation of them (four two one three) At least I think this is common on Google, etc.

That doesn't seem to make sense in this scenario however where "unity" is found but not - unity.

Search is critical to my site, I appreciate any help or just input to point me in the right direction.

I've also started a specific thread here:
community.getk2.org/forum/topics/k2-search-only-pulling-results

William White said:Try putting unity in quotes it works then
im not sure whats up in the code but i think it was fixed in 2.3 beta which i am using
let me test it and i will get back
pm a friend request to me

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

More
14 years 11 months ago #83590 by Case Noland
Replied by Case Noland on topic K2 tools Search Module
I see from the debug consol that it appears to be quereing all relevant fields you would want/expect, but still the results seem limited to item name.

#
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 <= 0
AND i.trash = 0
AND c.published = 1
AND c.access <= 0
AND c.trash = 0
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-05-25 00:29:37' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '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

Gamal Andrews said:You are correct case. It seems only to be searching the items name. How do you broaden it to everything? Thanks again William, you got me this far.

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

More
14 years 11 months ago #83591 by william white
Replied by william white on topic K2 tools Search Module
My site searches the extra fields.
I have noticed that the extra fields are stored in the item table like this
[Doe,Jane, 18, 123anystreet]
I will check the field names, turn debug on and see what my 2.3 is doing

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

More
14 years 11 months ago #83592 by mitay
Replied by mitay on topic K2 tools Search Module
But search are working on demo site! Why?
Sorry for my English.

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


Powered by Kunena Forum