Very sorry about that.  That was the old CLucene API. I've now rewritten
the API to accept an STL hash. The offending line

The document object will contain a structure that the CLucene API
expects

Has been changed to

The document object will contain a STL hash that the CLucene API expects



Anyway, the way this works is that the CLucene API will now take a
generic hash of all the fields in a document (body, title, meta_desc,
etc...) and fill its internal document with those fields. The hash looks
something like this:

std::map<std::basic_string<char>, std::pair<std::basic_string<char>,
std::basic_string<char> >

Those char's will eventually be replaced with wchar_t's. What this means
to the API is this:

<field_name, <field_contents, field_type> >


field_name is the name of the field (body, title, etc..)
field_contents is the actual words/data in the field
field_type is the CLucene type, which can be one of four different
types. 

Take a look at DocumentRef::initialize() in htcommon/DocumentRef.cc to
see what kind of fields are already defined, along with their types.


Hope this clears it up somewhat,
Anthony


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustave
Stresen-Reuter
Sent: Saturday, October 22, 2005 11:46 AM
To: htdig-dev@lists.sourceforge.net
Subject: [htdig-dev] what is a structure?

Anthony and Neal:

I'm reading the design document 
(http://opensource.rightnow.com/htdig4_refactor_design.pdf) and I see 
several references to custom "structures". My understanding of a 
structure is that it is a labeled array (whose elements may also be 
labeled arrays). Is that what you are referring to? If not, if you 
could point me to what you are talking about, that would be great.

Thanks in advance.

Ted Stresen-Reuter



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
ht://Dig Developer mailing list:
htdig-dev@lists.sourceforge.net
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
ht://Dig Developer mailing list:
htdig-dev@lists.sourceforge.net
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to