searcher/searchclient/src/csearchdocument.cpp
changeset 19 e3c09e9691e0
parent 17 7cda54f2d97f
child 23 d4d56f5e7c55
equal deleted inserted replaced
17:7cda54f2d97f 19:e3c09e9691e0
   244 EXPORT_C TReal32 CSearchDocument::Boost() const
   244 EXPORT_C TReal32 CSearchDocument::Boost() const
   245 	{
   245 	{
   246 	return iBoost; 
   246 	return iBoost; 
   247 	}
   247 	}
   248 
   248 
   249 #ifdef USE_HIGHLIGHTER
   249 
   250 EXPORT_C void CSearchDocument::AddHLDisplayFieldL(const TDesC& aField)
   250 EXPORT_C void CSearchDocument::AddHLDisplayFieldL(const TDesC& aField)
   251     {
   251     {
       
   252 #ifdef USE_HIGHLIGHTER
   252     // Needs to be tokenised to rewrite the query, but should not be searchable so EAggregateNo.
   253     // Needs to be tokenised to rewrite the query, but should not be searchable so EAggregateNo.
   253     AddFieldL( _L( CPIX_HL_EXCERPT_FIELD ), aField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EAggregateNo );
   254     AddFieldL( _L( CPIX_HL_EXCERPT_FIELD ), aField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EAggregateNo );
       
   255 #endif
   254     }
   256     }
   255 #endif
   257