Author Topic: Searching with partial matches?  (Read 3799 times)

0 Members and 1 Guest are viewing this topic.

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Searching with partial matches?
« on: April 22, 2008, 05:14:07 PM »
Hi all
It is possible to make searching  work  with partial matches too by default?

I know if I try search for  term*  it will  search partially matches too..  but  it is possible to make it  by default? so Visitors dont need put asterisk inside?

Thanks

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Searching with partial matches?
« Reply #1 on: April 22, 2008, 07:13:03 PM »
... possible is all ...
... but ...
... how many images, keywords and descriptions are in your gallery, that you ask such a sophisticated question ... ?
... and how many users visit every day your gallery and seach for images, that such a question make a sense ... ?
... you have the MOD Search Statistics installed ... ?

... so ...

... try this in your search_form by default ...
Code: [Select]
<input type="text" value="***" name="search_keywords" size="40" class="input" />
... and only press the search button ...
... so you will see, no image of your gallery will ever be forgotten by searching ...  :mrgreen:

PS.: you can test it, but you should take it not to seriously ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Searching with partial matches?
« Reply #2 on: April 22, 2008, 11:59:27 PM »
good day
nice joke :-D

2 people currently working on my gallery  Me + My friend
Its small gallery for people.. now.. but we want be bigger and maybe..some day.. buy licence and be commercional :-)

BUT that have doesnt with my needs :-D

I will explain - we are gallery with screens from mmorpg games.   So there is game called world of warcraft.  If anyone submit screenshot, it will have name  wow01  wow02 wow03 ..etc
so if I search for world of warcraft - nothing
If I search for  wow - nothing
that is why I need partial search..    because if I try wow*  it will find all wow* screens :) 

I know the idea is little wrong.. but its based on problem with  lazyness.. people dont want type description/keywords :(    + if someone try search for  wow* boss  .. it will find something about world of warcraft and bosses

edit:
I tried add some keywords to database via sql query and I see that keyword under picture, but search wont find that keyword (if I add keyword manually, search will find it)..  so where is keywords stored? I found it only in  table 4images_images column image_keywords .

Thanks fo rhelp
« Last Edit: April 23, 2008, 03:05:34 AM by rodier »