You don't know how to split the string containing the data you want to index??

        String s = "2012-07-06 11:11:43    some message";
        String timestamp = s.substring(0, 19);
        String content = s.substring(19).trim();

is one way.


--
Ian.


On Mon, Jul 9, 2012 at 3:55 AM, sam <hairen...@yahoo.com.cn> wrote:
> But i don't konw how to split this two data,this is the piont.would you mind
> writing down some codes to show that?thank you very much !
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/about-some-seacher-I-m-new-hand-thank-you-for-help-tp3993397p3993808.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to