Example usage for org.apache.lucene.benchmark.byTask.feeds DocData getDate

List of usage examples for org.apache.lucene.benchmark.byTask.feeds DocData getDate

Introduction

In this page you can find the example usage for org.apache.lucene.benchmark.byTask.feeds DocData getDate.

Prototype

public String getDate() 

Source Link

Usage

From source file:com.datastax.dse.demos.solr.Wikipedia.java

License:Open Source License

public static boolean addDoc(SolrInputDocument doc, DocData d) {

    if (d.getTitle().indexOf(":") > 0)
        return false;

    doc.clear();/*from   ww w  .  j av a  2  s. c  o m*/
    doc.addField("id", d.getName());
    doc.addField("title", d.getTitle());
    doc.addField("body", d.getBody());
    doc.addField("date", d.getDate());

    return true;
}