ZCatalog: searching by date
Hi, I'm part of a student group at UC Berkeley, and I'm trying to use ZCatalog to allow users to search our site by keyword and date modified. But for some reason, the date field seems to be ignored when a search is conducted. Since the keyword part works just fine and I can't find anything wrong with my code, I am stumped. Does anyone have any suggestions? Here is my search_form method, in case that is the problem after all: <!--#var standard_html_header--> <form action="report" method="get"> <h2><!--#var document_title--></h2> Enter query parameters:<br><table> <tr><th>Search for text:</th> <td><input name="raw" width=30 value=""></td></tr> <tr><th>Modified since: </th> <td><input type="hidden" name="date_usage" value="range:min"> <select name="date:date"> <option value="<!--#var "ZopeTime(0)"-->">Ever</option> <option value="<!--#var "ZopeTime() - 1"-->">Yesterday</option> <option value="<!--#var "ZopeTime() - 7" -->">Last Week</option> <option value="<!--#var "ZopeTime() - 30" -->">Last Month</option> <option value="<!--#var "ZopeTime() - 365" -->">Last Year</option> </select></td></tr> <tr><td colspan=2 align=center> <input type="SUBMIT" name="SUBMIT" value="Submit Query"> </td></tr> </table> </form> <!--#var standard_html_footer--> Thanks in advance, Alice
Hi, I used ZCatalog to index an object I created, which contains a site_index, and site_description properties. These properties were indexed and are searchable hence when I do the following search in DHTML <dtml-in "Catalog.searchResults(site_title='computer')"> <a href="/<dtml-var "Catalog.getpath(data_record_id_)">"> <dtml-var site_title></a><br> <dtml-var site_description> <p> </dtml-in> I do get the correct results. However when I enter a non-english word, which is indexed as well, I do not get anything else. I did hear that someone tries using ZCatalog with chinease and were unscussesful, has there been any changes?? Also what are the chances that ZCatalog can allow us to include a function to be used when indexing and searching of the objects, so we can apply any word tranformation such as suffix removal i.e. computing, computers, computer, computed, can be indexed as comput if I choose to. What I mean is that we specify a method (possibly external) that will do what is needed and the resulting word can be indexed by ZCatalog, and the same method is called to transform the input word usinf the same method when searching that catalog. Sorry for the long email :) Adonis
participants (2)
-
Alice Gutman -
technews@egsx.com