Author: Alex Barkov Email: [EMAIL PROTECTED] Message: Hello! We have it on our TODO, but currently it is not possible yet. TITLE, DESCRIPTION and KEYWORDS meta tags are hardcoded into parsehtml.c and sql.c. You can extend UDM_DOCUMENT type, described in udm_common.h with your additional fields and fix these two .c files to parse and store in database new fields using TITLE as an example.
If you want to display new fields in search results, you also have to fix search.cgi. It should pass new fields values as a template variables. Use title as an example again. Hope this helps. P.S. Another place where to add some additional code is doc.c. The function free_doc() should free memory allocated for new fields. > I am just beginning to use MnogoSearch, and so far it's working very well for me. > > I have a question concerning the ability to add additional search fields to the >database. > > Looking at the 'url' table, where it seems all the data is stored (utilizing the >single-table configuration option), I notice several fields which correspond to >certain html META tags. Such as 'title', 'keywords', 'description', etc. > > My method for indexing content is pretty straightforward. I index only the xml files >on my site, and at index time, call a mime-helper to pass the xml data through an xsl >stylesheet to produce a text/html file for MnogoSearch to index. I simply grab the >title, keywords, and summary nodes from my xml and turn them into their html-meta >equivalents. > > What I want to do is grab some additional fields, such as 'phone', or 'state', or >perhaps 'author', etc. Fields which our client would like to search on. > > Is it possible for me to simply add these columns to the 'create.txt' sql, and >perhaps do some other modifications and, using my xml/xslt-> html meta-tag method, >have these data captured for indexing as is the 'title', 'keywords' data? > > Please let me know if this is a) possible b) where in the documentation I might find >how to do this and c) if not in the documents, perhaps send me/post to mail-list a >quick how-to. Reply: <http://www.mnogosearch.org/board/message.php?id=3651> ___________________________________________ If you want to unsubscribe send "unsubscribe general" to [EMAIL PROTECTED]
