lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Lebolo <>
Subject Re: Problem querying large StrField?
Date Wed, 05 Feb 2014 18:04:05 GMT
Update: It seems I get the bad behavior (no documents returned) when the
length of a value in the StrField is greater than or equal to 32,767
(2^15). Is this some type of bit overflow somewhere?

On Wed, Feb 5, 2014 at 12:32 PM, Luis Lebolo <> wrote:

> Hi All,
> It seems that I can't query on a StrField with a large value (say 70k
> characters). I have a Solr document with a string type:
>     <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
> and field:
>    <dynamicField name="someFieldName_*" type="string" indexed="true"
> stored="true" />
> Note that it's stored, in case that matters.
> Across my documents, the length of the value in this StrField can be up to
> ~70k characters or more.
> The query I'm trying is 'someFieldName_1:*'. If someFieldName_1 has values
> with length < ~10k characters, then it works fine and I retrieve various
> documents with values in that field.
> However, if I query 'someFieldName_2:*' and someFieldName_2 has values
> with length ~60k, I don't get back any documents. Even though I *know* that
> many documents have a value in someFieldName_2.
> If I query *:* and add someFieldName_2 in the field list, I am able to see
> the (large) value in someFieldName_2.
> So is there some type of limit to the length of strings in StrField that I
> can query against?
> Thanks,
> Luis

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