portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morci...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/lucene LuceneSearchService.java
Date Fri, 27 Feb 2004 21:55:04 GMT
morciuch    2004/02/27 13:55:04

  Modified:    src/java/org/apache/jetspeed/services/search/lucene
                        LuceneSearchService.java
  Log:
  Added missing sets for language and classname
  
  Revision  Changes    Path
  1.9       +11 -1     jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/lucene/LuceneSearchService.java
  
  Index: LuceneSearchService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/search/lucene/LuceneSearchService.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- LuceneSearchService.java	23 Feb 2004 03:48:00 -0000	1.8
  +++ LuceneSearchService.java	27 Feb 2004 21:55:04 -0000	1.9
  @@ -276,6 +276,16 @@
                   result.setKey(doc.getField(ParsedObject.FIELDNAME_KEY).stringValue());
                   result.setDescription(doc.getField(ParsedObject.FIELDNAME_DESCRIPTION).stringValue());
                   result.setTitle(doc.getField(ParsedObject.FIELDNAME_TITLE).stringValue());
  +				Field language = doc.getField(ParsedObject.FIELDNAME_LANGUAGE);
  +				if (language != null)
  +				{
  +					result.setLanguage(language.stringValue());
  +				}
  +				Field classname = doc.getField(ParsedObject.FIELDNAME_CLASSNAME);
  +				if (classname != null)
  +				{
  +					result.setClassName(classname.stringValue());
  +				}
                   Field url = doc.getField(ParsedObject.FIELDNAME_URL);
                   if (url != null)
                   {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message