Hello
How can I add the keywords in the search?
I mean like the search understand the arfoo_keywordsofsites as a normal field (ie: description), and use with the rest of the criterias
the line is from models/SiteModel.php, but I need some help to modify the rest (there's no siteKeywords field since its from another table and I also think that a IF is needed)
$c->add("MATCH (siteTitle, description)
if thats not possible, there's another solution like a "keyword search" or "keyword filter"?
thank you
Keywords as a search criteria
Moderator: effi
18 posts
• Page 1 of 2 • 1, 2
Re: Keywords as a search criteria
I am sorry not to be able to help for this but from what I saw, you are not the only one to complain about the performance of the search engine so hopefully, this will be improved in a future version.
Edit: Arf explained how to add an extra field to the search engine in the French board. Maybe this will do what you want.
You can take a look at the code here:
http://forum.arfooo.com/post5232.html
and if you need the instructions to be translated, let me know.
Edit: Arf explained how to add an extra field to the search engine in the French board. Maybe this will do what you want.
You can take a look at the code here:
http://forum.arfooo.com/post5232.html
and if you need the instructions to be translated, let me know.
- chadon
- Posts: 59
- Joined: Mon Jan 19, 2009 10:29 pm
- Location: NB Canada
Re: Keywords as a search criteria
I can make the script if somebody help me to translate this to a mysql query:
you only need to look at the bold part, because i can do the rest
- user enter the $search or whatever you want to name the $
- if $search = arfooo_keywords.keyword, get the keywordID from the same line
- switch to table arfooo_keywordofsites.keywordID and list all the siteID that uses that keywordID
- list all the matches and transform siteID on the site name
ps: i think it will use something like (from the arfooo_keywords.keyword)
WHERE keyword LIKE '%$search%'
you only need to look at the bold part, because i can do the rest
- user enter the $search or whatever you want to name the $
- if $search = arfooo_keywords.keyword, get the keywordID from the same line
- switch to table arfooo_keywordofsites.keywordID and list all the siteID that uses that keywordID
- list all the matches and transform siteID on the site name
ps: i think it will use something like (from the arfooo_keywords.keyword)
WHERE keyword LIKE '%$search%'
- ping
- Posts: 23
- Joined: Sat May 02, 2009 12:41 am
Re: Keywords as a search criteria
I can probably get some help in the French forum but before I do so I have a question. Would this code search for links depending of their title/description content AND keywords or would you have two options to search for the links content OR keywords?
If it's the second, I can probably write something much more easy to implement.
If it's the second, I can probably write something much more easy to implement.
- chadon
- Posts: 59
- Joined: Mon Jan 19, 2009 10:29 pm
- Location: NB Canada
Re: Keywords as a search criteria
A type of search that looks for matching documents that contain one or more words specified by the user.
- seopositive
- Posts: 5
- Joined: Mon Jun 29, 2009 7:36 am
Re: Keywords as a search criteria
Hi,
You will find that it is very difficult to achieve higher search engine ranking, without geniue quality content.
Nevertheless, you may find the following information useful, about meta tags, which can be used to provide search engines with additional keywords: http://www.brugbart.com/?AID=81
The best way to get higher search engine ranking, is to make sure high-quality relevant pages link back to you. Also make sure that your keywords actualley apear somewhere in your content, and you don't duplicate content.
You may also wan't to create a sitemap, see http://www.sitemap.org/ for more information. This step won't make sure your pages apear, but it dose make sure search engines know about all your pages.
You will find that it is very difficult to achieve higher search engine ranking, without geniue quality content.
Nevertheless, you may find the following information useful, about meta tags, which can be used to provide search engines with additional keywords: http://www.brugbart.com/?AID=81
The best way to get higher search engine ranking, is to make sure high-quality relevant pages link back to you. Also make sure that your keywords actualley apear somewhere in your content, and you don't duplicate content.
You may also wan't to create a sitemap, see http://www.sitemap.org/ for more information. This step won't make sure your pages apear, but it dose make sure search engines know about all your pages.
- hosting456
- Posts: 8
- Joined: Sat Sep 12, 2009 12:54 am
Re: Keywords as a search criteria
Keywords are terms and phrases, including a combination of letters, numbers, and special characters on which you can base your search. When creating document search criteria, you can use a combination of keywords, operators, wildcard characters, and grouping to define your query. Try to be as spWhen creating document search criteria, you can use a combination of keywords, operators, wildcard characters, and grouping to define your query. Try to be as specific as possible when coming up with search criteria.
______________
______________
- erslageorge
- Posts: 5
- Joined: Mon Nov 29, 2010 4:25 pm
Re: Keywords as a search criteria
I think it is "that" complicates everything we need is someone who knows how to do proper consultation with INNER JOIN, LEFT or whatever it takes a shame I can not, I tried to events, but without success.
|
- disolmodo78
- Posts: 9
- Joined: Mon Nov 29, 2010 6:05 pm
18 posts
• Page 1 of 2 • 1, 2
Return to Templates, plugins and tutorials
-
- Related topics
- Replies
- Views
- Last post
-
- Is it possible to load an ad by criteria name
by skdo84 » Wed Jun 10, 2009 10:33 am - 2 Replies
- 1819 Views
- Last post by skdo84
Fri Jun 12, 2009 4:31 am
- Is it possible to load an ad by criteria name
-
- accept keywords
by jmjosebest » Thu Aug 20, 2009 6:59 am - 4 Replies
- 2776 Views
- Last post by imariush
Fri Feb 11, 2011 9:41 am
- accept keywords
-
- Keywords in Meta Tags
by martinglover » Wed May 19, 2010 12:16 pm - 11 Replies
- 4715 Views
- Last post by lil okie
Tue Aug 02, 2011 7:29 am
- Keywords in Meta Tags
-
- Keywords Letters Into Arabic Alphabet
by saidbakr » Mon Apr 05, 2010 9:10 pm - 0 Replies
- 10830 Views
- Last post by saidbakr
Mon Apr 05, 2010 9:10 pm
- Keywords Letters Into Arabic Alphabet
-
- How to show custom keywords and fileds on item.tpl?
by diamin » Sun Apr 24, 2011 6:05 am - 1 Replies
- 2305 Views
- Last post by diamin
Wed Apr 27, 2011 4:12 am
- How to show custom keywords and fileds on item.tpl?
Who is online
Users browsing this forum: No registered users and 0 guests