Index: openacs-4/packages/search/www/doc/guidelines.html
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/doc/guidelines.html,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/search/www/doc/guidelines.html 3 Oct 2001 03:14:42 -0000 1.1
+++ openacs-4/packages/search/www/doc/guidelines.html 6 Oct 2001 12:09:40 -0000 1.2
@@ -27,6 +27,17 @@
all content is created using that subclass, rather than simply create
content with the "content_revision" type.
+
+- Object types that don't use the CR, can be specified using
+
acs_object_type__create_type
,
+but those that use the CR need to use content_type__create_type
.
+content_type__create_type
overloads acs_object_type__create_type
+and provides two views for inserting and viewing content data, and the CR depends on these views.
+ - Whenever you call content_item__new, call it with
+'content_revision' as the item_subtype and 'your_content_type' as the content_type.
+
+
+
Implement FtsContentProvider
FtsContentProvider is comprised of two abstract operations, namely
@@ -133,6 +144,30 @@
+Questions & Answers
+
+
+-
+Q: If content is some binary file (like a pdf file stored in file storage, for example),
+will the content still be indexable/searchable?
+A: For each mime type we require some type of handler. Once the handler is available, i.e. pdf2txt,
+it is very easy to incorporate support for that mime type into the search package. Content items
+with unsupported mime types will be ignored by the indexer.
+
+ -
+Q: Can the search package handle lobs and files?
+A: Yes, the search package will convert everything into text
+based on the content and storage_type attributes. Here is the
+convention to use while writing the implementation of datasource:
+
+- Content is a filename when storage_type='file'.
+
- Content is a lob id when storage_type='lob'.
+
- Content is text when storage_type='text'.
+
+
+
+
+