lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@gmail.com>
Subject Re: how to add attributes to a field just like term's payload ?
Date Fri, 25 Jan 2013 09:17:35 GMT
Directory directory = ...
final SegmentInfos sis = new SegmentInfos();
sis.read(directory);
Map<String, String> commitUserData = sis.getUserData();

simon

On Fri, Jan 25, 2013 at 2:32 AM, wgggfiy <wuqiu.main@qq.com> wrote:
> hello, but there is no getCommitUserData in IndexReader,
> how can I get the userdata ??
> thx
>
>
>
> -----
> --------------------------
> Email: wuqiu.main@qq.com
> --------------------------
> --
> View this message in context: http://lucene.472066.n3.nabble.com/how-to-add-attributes-to-a-field-just-like-term-s-payload-tp4031045p4036128.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