baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Alan Browne on 5/16 2005, 12:54 +00:00
    EMail: alanbrowne@iolfree.ie

    Re: how to use the search function


      I was wondering if someone could help. I have a baseportal database and want users to be able to search the database using any value in a field e.g. if the value in the field is 'Large Poster', I want users to be able to search using just the word 'Poster' and for 'Large Poster' to appear.
      I notice there are some suggestions below about adding code. Should this code be added to the baseportal search page - or within my website?
      Any/all help appreciated.
      Thanks

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from Loewenfrau on 1/27 2004, 04:16 +00:00

    how to use the sreach function


      i'm unsure how the search function works.
      Do my site vistors have to type in the exact name that they are looking for or can wildcards be used ?
     Post a reply

    Message from Loewenfrau on 1/27 2004, 04:28 +00:00

    Re: how to use the search function


      Ok i did some tests. It seems that the search is only looking for the beginning of the fields.

      e.g if i search for african i get all my african animal downloads listed, but if I search for giraffe I get no files found even though I do have an albino giraffe listed.
      Is there a way to have the search use all entries in the filrds and not just the first ?

      btw this is the animal detabase i'm talking about
      http://baseportal.com/cgi-bin/baseportal.pl?htx=/ZTDD/animals
     Post a reply

    Message from Christoph Bergmann on 1/27 2004, 08:05 +01:00
    EMail: info@baseportal.com

    Re: how to use the search function


      There is no full text retrieval in the free version. But its not too difficult to program this. Would look like this:

      <loop code=perl>
      if(index($Field, $Search)>=0)
      {
      out "$Field<br>";
      }
      </loop>

      Ok?

     Post a reply

    Message from Loewenfrau on 1/28 2004, 09:11 -05:00

    Re: how to use the search function


      i'm sorry but I'm no programmer.
      I need to put my actual field name , in my case 'Name' instead of the word field ?

      <loop code=perl>
      if(index($Name, $Search)>=0)
      {
      out "$Name<br>";
      }
      </loop>

      and where exactly would i have to put that code ?
      Does it go where i have

      <do action=all .....

      sorry again but I'm just a mom at home ;)

     Post a reply

    Message from Christoph Bergmann on 1/28 2004, 19:27 +01:00
    EMail: info@baseportal.de

    Re: how to use the search function


      The $Name is the name of the field you want to search in. You have a field "Name" in your database and I thought it would be the right field ;-)

      If not you can change all $Name to i.g. $Description

      You could put this code on an extra search page or in front of <do action=all ...>

      But you'll need something where the user can enter the Search string.... Mmh, I'll give you a complete example later on.
     Post a reply

    Message from Loewenfrau on 2/1 2004, 17:53 +00:00

    Re: how to use the search function


      Hi again,

      I still could't figure it out. Full text search is essential for this site.

      Please help !
     Post a reply

    Message from Asriel on 2/9 2004, 10:25 -08:00
    EMail: asrielsaporta@hotmail.com WWW: evolutionaryconsulting.com

    Re: how to use the search function


      I have exactly the same need. I am an independent business consultant and in my website I have a Job Database using Baseportal. I need to add the functionality where the users could search for a job in the database using any word within the JobTitle field.

      I have made the field JobTitle an Index field and tried the code provided in these responces and placed it both before and after the <do action all...> code. The result is that it simply appears on the page a text version of all the JobTitles. The search does not work.

      Please help us Christoph.
      Thank you
      Asriel
     Post a reply

    Message from canadave on 12/29 2004, 14:48 +00:00

    Re: how to use the search function


      This thread, from February, addresses the question I just posted about. Has there been any progress toward a full-text search that returns all full records associated with a "match" on the search field, or is there any way to implement it?

      Dave
     Post a reply

    Message from Alan Browne on 5/16 2005, 12:54 +00:00
    EMail: alanbrowne@iolfree.ie

    Re: how to use the search function


      I was wondering if someone could help. I have a baseportal database and want users to be able to search the database using any value in a field e.g. if the value in the field is 'Large Poster', I want users to be able to search using just the word 'Poster' and for 'Large Poster' to appear.
      I notice there are some suggestions below about adding code. Should this code be added to the baseportal search page - or within my website?
      Any/all help appreciated.
      Thanks

     Post a reply
     

 Messages from 2700 to 2850: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com