I suspect what's happening is that the index format changed
between 3.x and 4.x and somehow the Luke request
handler is getting mixed up. I'm further  guessing that
the -1 is just the default value, since it's clearly bogus
it's a flag the luke request handler just didn't see what it
expected...

Optimizing should fix this up since it'll re-write the entire index
into 4.x format. Running the index upgrade tool might work
too.

Best
Erick

On Mon, Oct 29, 2012 at 11:07 AM, adityab <aditya_ba...@yahoo.com> wrote:
> Hi Erick,
>
> I have upgraded from 3.5 to 4.0 on first index build i was able to see the
> distinct terms on UI under Schema Browser section. I had to add a new date
> field as stored to schema and re-index.
> After that all the time on UI for every field i see the distinct term as
> "-1".
> Can you please advice if i am missing anything to configure?
>
> here is the luke response for field "_version_"
>
> http://.../solr/admin/luke?fl=_version_
>
>
> <lst name="_version_">
> <str name="type">long</str>
> <str name="schema">ITS----OF-----</str>
> <str name="index">-TS-----------</str>
> <int name="docs">16392300</int>
> *<int name="distinct">-1</int>*
> <lst name="topTerms">
> <int name="1417044679548993536">1</int>
> <int name="1417044680125710336">1</int>
> <int name="1417044680136196096">1</int>
> <int name="1417044680142487552">1</int>
> <int name="1417044680151924736">1</int>
> <int name="1417044680163459072">1</int>
> <int name="1417044680170799104">1</int>
> <int name="1417044680181284864">1</int>
> <int name="1417044680187576320">1</int>
> <int name="1417044680192819200">1</int>
> </lst>
> <lst name="histogram">
> <int name="1">16392300</int>
> </lst>
> </lst>
>
> Looks like this problem can be solved by performing optimize as posted in
> one of the archives
> http://lucene.472066.n3.nabble.com/always-getting-distinct-count-of-1-in-luke-response-solr4-snapshot-td3985546.html
>
> Just curious what makes this value "-1"
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Exception-while-getting-Field-info-in-Lucene-tp4016448p4016707.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to