Search function

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
micoli
Posts: 5
Joined: Wed Dec 16, 2009 10:46 am

Search function

Post by micoli »

When i type a specific word to search for its always displayed on the bottom of a long list.
How can i have a more specific result?
The searchphrase is not in one off the artikels.

Can anyone help me?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

can you show me your FAQ and tell me your search term?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
micoli
Posts: 5
Joined: Wed Dec 16, 2009 10:46 am

Re: Search function

Post by micoli »

Here it is
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

the search term is at least in the forth result...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
micoli
Posts: 5
Joined: Wed Dec 16, 2009 10:46 am

Re: Search function

Post by micoli »

Okay but the words are not in the other titles???
Why does it being showed when it is not relevant...
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

it seems it's in the answer, too. The search is searching the question, the answer and the keywords.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
micoli
Posts: 5
Joined: Wed Dec 16, 2009 10:46 am

Re: Search function

Post by micoli »

Is there a way to search only for keywords in the title?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

sure... but you have to change to code. And you'll get bad search results.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
micoli
Posts: 5
Joined: Wed Dec 16, 2009 10:46 am

Re: Search function

Post by micoli »

Ok where do i find te code for the searchstring?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

it's in inc/functions.php and the function is called searchEngine().

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jimjamzoo
Posts: 4
Joined: Thu Dec 17, 2009 7:45 pm

Re: Search function

Post by jimjamzoo »

i want to remove the whole search bar from there but instead want google custom search bar...
search bar.jpg

google provide two codes one for the search bar and one code where the search results will be shown...
Can you tell me where to place the code for search bar
and where to place the code for search results...
I will really appreciate...
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Search function

Post by Thorsten »

Hi,

this is in template/index.tpl and template/search.tpl.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply