From: <syn...@us...> - 2008-05-28 22:22:13
|
Revision: 2635 http://clucene.svn.sourceforge.net/clucene/?rev=2635&view=rev Author: synhershko Date: 2008-05-28 15:21:56 -0700 (Wed, 28 May 2008) Log Message: ----------- strdup to STRDUP_AtoA fix in IndexFileNames and several other small Java to C++ conversions Modified Paths: -------------- branches/lucene2_3_2/src/CLucene/index/IndexFileNames.cpp branches/lucene2_3_2/src/CLucene/index/SegmentMergeInfo.h branches/lucene2_3_2/src/CLucene/index/TermVector.h branches/lucene2_3_2/src/CLucene/search/SearchHeader.h Modified: branches/lucene2_3_2/src/CLucene/index/IndexFileNames.cpp =================================================================== --- branches/lucene2_3_2/src/CLucene/index/IndexFileNames.cpp 2008-05-28 20:59:39 UTC (rev 2634) +++ branches/lucene2_3_2/src/CLucene/index/IndexFileNames.cpp 2008-05-28 22:21:56 UTC (rev 2635) @@ -48,7 +48,7 @@ free( genStr ); } - return strdup( fileName ); + return STRDUP_AtoA( fileName ); } CL_NS_END Modified: branches/lucene2_3_2/src/CLucene/index/SegmentMergeInfo.h =================================================================== --- branches/lucene2_3_2/src/CLucene/index/SegmentMergeInfo.h 2008-05-28 20:59:39 UTC (rev 2634) +++ branches/lucene2_3_2/src/CLucene/index/SegmentMergeInfo.h 2008-05-28 22:21:56 UTC (rev 2635) @@ -16,6 +16,7 @@ CL_NS_DEF(index) class SegmentMergeInfo:LUCENE_BASE { +private: int32_t* docMap; // maps around deleted docs TermPositions* postings; public: Modified: branches/lucene2_3_2/src/CLucene/index/TermVector.h =================================================================== --- branches/lucene2_3_2/src/CLucene/index/TermVector.h 2008-05-28 20:59:39 UTC (rev 2634) +++ branches/lucene2_3_2/src/CLucene/index/TermVector.h 2008-05-28 22:21:56 UTC (rev 2635) @@ -19,18 +19,20 @@ struct TermVectorOffsetInfo; class TermPositionVector; -/** Provides access to stored term vector of - * a document field. +/** Provides access to stored term vector of + * a document field. The vector consists of the name of the field, an array of the terms tha occur in the field of the + * {@link org.apache.lucene.document.Document} and a parallel array of frequencies. Thus, getTermFrequencies()[5] corresponds with the + * frequency of getTerms()[5], assuming there are at least 5 terms in the Document. */ class TermFreqVector:LUCENE_BASE { public: virtual ~TermFreqVector(){ } - /** - * - * @return The field this vector is associated with. - * + /** + * The {@link org.apache.lucene.document.Fieldable} name. + * @return The name of the field this vector is associated with. + * */ virtual const TCHAR* getField() = 0; Modified: branches/lucene2_3_2/src/CLucene/search/SearchHeader.h =================================================================== --- branches/lucene2_3_2/src/CLucene/search/SearchHeader.h 2008-05-28 20:59:39 UTC (rev 2634) +++ branches/lucene2_3_2/src/CLucene/search/SearchHeader.h 2008-05-28 22:21:56 UTC (rev 2635) @@ -465,12 +465,20 @@ virtual const TCHAR* getQueryName() const = 0; bool instanceOf(const TCHAR* other) const; - /** Prints a query to a string, with <code>field</code> as the default field - * for terms. <p>The representation used is one that is readable by - * {@link queryParser.QueryParser QueryParser} - * (although, if the query was created by the parser, the printed - * representation may not be exactly what was parsed). - */ + /** Prints a query to a string, with <code>field</code> assumed to be the + * default field and omitted. + * <p>The representation used is one that is supposed to be readable + * by {@link org.apache.lucene.queryParser.QueryParser QueryParser}. However, + * there are the following limitations: + * <ul> + * <li>If the query was created by the parser, the printed + * representation may not be exactly what was parsed. For example, + * characters that need to be escaped will be represented without + * the required backslash.</li> + * <li>Some of the more complicated queries (e.g. span queries) + * don't have a representation that can be parsed by QueryParser.</li> + * </ul> + */ virtual TCHAR* toString(const TCHAR* field) const = 0; virtual bool equals(Query* other) const = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |