Package org.apache.cxf.jaxrs.ext.search.tika

Examples of org.apache.cxf.jaxrs.ext.search.tika.LuceneDocumentMetadata


        for (final Attachment attachment: body.getAllAttachments()) {
            final DataHandler handler =  attachment.getDataHandler();
           
            if (handler != null) {
                final String source = handler.getName();               
                final LuceneDocumentMetadata metadata = new LuceneDocumentMetadata()
                    .withSource(source)
                    .withField("modified", Date.class);
               
                final Document document = extractor.extract(handler.getInputStream(), metadata);
                if (document != null) {                   
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxrs.ext.search.tika.LuceneDocumentMetadata

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.