lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KARTHIK SHIVAKUMAR <nskarthi...@gmail.com>
Subject How can i index a Java Bean into Lucene application ?
Date Sat, 06 Aug 2011 12:58:49 GMT
Hi

How can i  index a  Java Bean  into Lucene  application ?  instead of a
file

API  : IndexWriter writer = new IndexWriter(*FSDirectory.open(INDEX_DIR)*,
new StandardAnalyzer(Version.LUCENE_CURRENT), true,
IndexWriter.MaxFieldLength.LIMITED);

Is there any alternate for the same .

ex:

* package com.web.beans.searchdata;*

* public class SearchIndexHtmlData {

    public String CONTENT             ="NA";
    public String DATEOFCREATION      ="NA";
    public String DATEOFINDEXCREATION ="NA";


    public String getCONTENT() {
        return CONTENT;
    }
    public void setCONTENT(String cONTENT) {
        CONTENT = cONTENT;
    }
    public String getDATEOFCREATION() {
        return DATEOFCREATION;
    }
    public void setDATEOFCREATION(String dATEOFCREATION) {
        DATEOFCREATION = dATEOFCREATION;
    }
    public String getDATEOFINDEXCREATION() {
        return DATEOFINDEXCREATION;
    }
    public void setDATEOFINDEXCREATION(String dATEOFINDEXCREATION) {
        DATEOFINDEXCREATION = dATEOFINDEXCREATION;
    }
}*


-- 
*N.S.KARTHIK
R.M.S.COLONY
BEHIND BANK OF INDIA
R.M.V 2ND STAGE
BANGALORE
560094*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message