Package org.springmodules.samples.lucene.bean.indexing

Examples of org.springmodules.samples.lucene.bean.indexing.DocumentField


    }, new HitExtractor() {
      public Object mapHit(int id, Document document, float score) {
        List fields = new ArrayList();
        for(Enumeration e = document.fields(); e.hasMoreElements();) {
          Field field = (Field)e.nextElement();
          DocumentField documentField = new DocumentField(field.name(), field.stringValue(),
                            field.isIndexed(), field.isStored());
          fields.add(documentField);
        }
        return fields;
      }
View Full Code Here

TOP

Related Classes of org.springmodules.samples.lucene.bean.indexing.DocumentField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.