OpenNTF.org - BlogSphere V3
BlogSphere V3OpenDocument[/Projects/pmt.nsf/ProjectView?ReadForm&Query=]

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: BlogSphere V3 (Managed by )
Actions:


Subject
 Search does not work in languge versions
Categories
 Testing
Posted by
 Thomas Bahn on 01/17/2007 at 07:15 AM
Details

The search does not work in language versions of an entry.

This is mainly because, they are removed from the search result ;-)

In the RenderEngine.Blog script library, in RenderEngineSearchResults() there is a block to "Reduce the search To Only Include Blog Entries, Downloads and Photos" which contains following line:

If ArchiveDoc.Form(0) <> "content_BlogEntry" Then

which could be substituted by:

If Left$(ArchiveDoc.Form(0), 17) <> "content_BlogEntry" Then

But this will not work, since the Language Versions does not have an EntryDate item.

Perhaps the ArchiveDoc document in the ArchiveDocColl collection should be "replaced" by the main entry?

This could be done by creating a new NotesDocumentCollection. Then in the "Reducing..." block instead of removing documents from the ArchiveDocColl, the content_BlogEntry documents could be added (for language versions the main content_BlogEntry) to the new collection. Then the code below could use new collection.
Modification history
Entered 17-Jan-2007 7:15 by Thomas Bahn. Last Modified 17-Jan-2007 8:31 by Thomas Bahn.


Anonymous