You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Vincenzo D'Amore <v....@gmail.com> on 2019/09/05 11:04:21 UTC

string field max size

Hi all,

sorry for the silly question, I need to store in Solr a string field larger
than 32k (index="false").

Given that storing field larger than 32k rises an exception:
"DocValuesField "filterQuery" is too large, must be <= 32766", I thought to
use predefined type text_ws.

Any suggestions?

Thanks in advance and best regards,
Vincenzo

-- 
Vincenzo D'Amore

Re: string field max size

Posted by Jitendra soni <ji...@gmail.com>.
I agree, stored=true and indexed =false should resolve this size issue.

On Thu, 5 Sep 2019 at 21:54, Erick Erickson <er...@gmail.com> wrote:

> Use a text field with stored=true and indexed=false? That'll allow you to
> return it...
>
> On Thu, Sep 5, 2019, 07:04 Vincenzo D'Amore <v....@gmail.com> wrote:
>
> > Hi all,
> >
> > sorry for the silly question, I need to store in Solr a string field
> larger
> > than 32k (index="false").
> >
> > Given that storing field larger than 32k rises an exception:
> > "DocValuesField "filterQuery" is too large, must be <= 32766", I thought
> to
> > use predefined type text_ws.
> >
> > Any suggestions?
> >
> > Thanks in advance and best regards,
> > Vincenzo
> >
> > --
> > Vincenzo D'Amore
> >
>
-- 
Thanks
Jitendra

Re: string field max size

Posted by Vincenzo D'Amore <v....@gmail.com>.
Thanks Erick for this last confirmation. I've at the end I've used the
standard "text_ws":

    <fieldType name="text_ws" class="solr.TextField"
positionIncrementGap="100">
      <analyzer>
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
      </analyzer>
    </fieldType>

And the field

<field name="balgal" type="text_ws" indexed="false" stored="true" />

On Fri, Sep 6, 2019 at 2:54 AM Erick Erickson <er...@gmail.com>
wrote:

> bq. What I do not understand is what happens to the Analyzers, Tokenizers,
> and
> Filters in the indexing chain
>
> They are irrelevant. The analysis chain is only executed when
> indexed=true.
>
> Best,
> Erick
>
> > On Sep 5, 2019, at 9:03 AM, Vincenzo D'Amore <v....@gmail.com> wrote:
> >
> > What I do not understand is what happens to the Analyzers, Tokenizers,
> and
> > Filters in the indexing chain
>
>

-- 
Vincenzo D'Amore

Re: string field max size

Posted by Erick Erickson <er...@gmail.com>.
bq. What I do not understand is what happens to the Analyzers, Tokenizers, and
Filters in the indexing chain

They are irrelevant. The analysis chain is only executed when indexed=true. 

Best,
Erick

> On Sep 5, 2019, at 9:03 AM, Vincenzo D'Amore <v....@gmail.com> wrote:
> 
> What I do not understand is what happens to the Analyzers, Tokenizers, and
> Filters in the indexing chain


Re: string field max size

Posted by Vincenzo D'Amore <v....@gmail.com>.
Thanks Erick for the prompt answer.
What I do not understand is what happens to the Analyzers, Tokenizers, and
Filters in the indexing chain.
Are they executed or not? Well, answering to my own question I think no,
but so what's the difference between string and text when they are not
indexed?
Just the way how are they stored and retrieved?


On Thu, Sep 5, 2019 at 1:54 PM Erick Erickson <er...@gmail.com>
wrote:

> Use a text field with stored=true and indexed=false? That'll allow you to
> return it...
>
> On Thu, Sep 5, 2019, 07:04 Vincenzo D'Amore <v....@gmail.com> wrote:
>
> > Hi all,
> >
> > sorry for the silly question, I need to store in Solr a string field
> larger
> > than 32k (index="false").
> >
> > Given that storing field larger than 32k rises an exception:
> > "DocValuesField "filterQuery" is too large, must be <= 32766", I thought
> to
> > use predefined type text_ws.
> >
> > Any suggestions?
> >
> > Thanks in advance and best regards,
> > Vincenzo
> >
> > --
> > Vincenzo D'Amore
> >
>


-- 
Vincenzo D'Amore

Re: string field max size

Posted by Erick Erickson <er...@gmail.com>.
Use a text field with stored=true and indexed=false? That'll allow you to
return it...

On Thu, Sep 5, 2019, 07:04 Vincenzo D'Amore <v....@gmail.com> wrote:

> Hi all,
>
> sorry for the silly question, I need to store in Solr a string field larger
> than 32k (index="false").
>
> Given that storing field larger than 32k rises an exception:
> "DocValuesField "filterQuery" is too large, must be <= 32766", I thought to
> use predefined type text_ws.
>
> Any suggestions?
>
> Thanks in advance and best regards,
> Vincenzo
>
> --
> Vincenzo D'Amore
>