search form for meta tags

Post Reply
astrid.grossboetzl
Posts: 40
Joined: Tue Jan 15, 2002 9:54 am

search form for meta tags

Post by astrid.grossboetzl »

Hi,
last week i got webinator.
I start the search from a content management system called Obtree.
To make a full text search is no problem.
But know i will create a search form for meta tags (for example i will search for author or title). It should be possible to generate extra fields for the meta tags.
Where can I make such a search form and where can i make a script for the query?
Thank´s for help
Astrid (from Salzburg Austria)
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

search form for meta tags

Post by John »

When you start having different fields that you are searching you are getting to the point where a full Texis application may be appropriate, rather than just Webinator. For example with full Texis you could create an Author field in the table.

The title is stored in the Title field of the Webinator table. You would need to edit the search script. There is a function "showform" which displays the search form, and a function "search" which actually performs the search. The search already has the option to search by title if you have an input box named tq. You could add something similar to search the Meta field for other meta-tags.
John Turnbull
Thunderstone Software
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

search form for meta tags

Post by mark »

Title, Keywords, and Description have their own broken out columns. All other meta data that you specified to store is in the Meta column. (See http://www.thunderstone.com/texis/site/ ... and+Fields )

You can create an index on a field so you can search by just that field. Eg:
texis -d /path/to/your/database -s "create metamorph inverted index xmtitle on html(Title)"
You'll have to do that by hand after each walk.

Then you'll have to customize the search script to search by "Title" instead of "Title\Description\Keywords\Meta\Body".
doran
Posts: 50
Joined: Tue Jun 06, 2000 1:37 pm

search form for meta tags

Post by doran »

Using Webinator to index pages created by a CMS (content management system) is outside the bounds of acceptable use in most cases. (See last section of the Webinator license agreement.) Users wishing to do this should contact Thunderstone Sales for a special license allowing that.
doran
Posts: 50
Joined: Tue Jun 06, 2000 1:37 pm

search form for meta tags

Post by doran »

Astrid, your license is OK (Enterprise Webinator).
Previous comment was for benefit of others.
dao
Posts: 31
Joined: Fri Apr 12, 2002 2:26 pm

search form for meta tags

Post by dao »

Hi,

I have a similar problem, but I would like one of the meta tags to be a date tag (foxdate). What is the best way for the search results to be ordered by foxdate? Will the SQL engine recognize the foxdate meta tag as being a "date" data type and know how to order by foxdate? Or, will it by default sort the results according to how foxdate is ordered as a string?

Thanks

Dao@mit.edu
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

search form for meta tags

Post by John »

One option would be to extract the date in the crawler, and store it in the the Visited column, which is a date.

Ordering string fields will use string ordering, with no data type translation.

If you have a significant number of custom meta tags and other information you want to handle specially you want to consider full Texis, which, among other things, lets you customize the schema to your needs.
John Turnbull
Thunderstone Software
Post Reply