https://bugs.freedesktop.org/show_bug.cgi?id=44681

--- Comment #1 from Gert van Valkenhoef <[email protected]> 
2012-02-09 13:01:26 PST ---
Created attachment 56833
  --> https://bugs.freedesktop.org/attachment.cgi?id=56833
Partial implementation (indexing)

I wrote a C++ port of the Java-based HelpIndexerTool (or, actually, only the
part that does the indexing using Lucene, with a minimal main() that just
indexes a hard-coded test directory). Before I go forward, there are a number
of questions about how this will be used and what are the constraints etc.:

 * Lucene 2.3 is used, but the CLucene stable version is Lucene 1.9.1
   compatible. The developers recommend using the Git version, which *is*
   compatible with 2.3. Is that OK?

 * How exactly is HelpIndexerTool used? I believe both as a command-line tool
   (as part of a ??? -> HelpLinker -> HelpIndexer -> ???) chain in the build
   process, and as a run-time component to index help for extensions. Is it
   desired to keep HelpIndexer as a stand-alone command-line tool, or is that
   just because it is a Java component currently?

 * HelpIndexerTool does two things:

    - Index help files using Lucene, producing intermediate files

    - Bundle the intermediate files into a ZIP archive

   Currently, I ported most of the first part (for Japanese there is a special
   Analyzer, which I don't know how to test, and there are a bunch of options
   to check certain things, of which I'm not sure whether they're ever used).

   Question: does creating the ZIP need to be part of this? If so, what is the
   best way to create the archive?

 * HelpFileDocument is a simple support class that produces a Lucene Document
   for a given help file. This is fully ported (as the helpDocument method).

 * I'm assuming that CLucene will *always* be compiled with TCHAR defined as
   wchar_t. This is because of my ignorance of how one does portable wide 
   strings in LibreOffice. Please enlighten me.

 * How to incorporate the CLucene dependency in the build process?

The attached code is contributed under under the LGPLv3+ / MPL.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to