lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: about some seacher(I'm new hand, thank you for help)
Date Mon, 09 Jul 2012 09:19:48 GMT
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 <hairen512@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


Mime
View raw message