lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anil <anilk...@gmail.com>
Subject Re: Get one fragment of text of field
Date Thu, 18 Feb 2016 07:21:59 GMT
Thanks Binoy.

index should happen on everything.

But retrial/fetch should limit the characters. is it possible ?

Regards,
Anil

On 18 February 2016 at 12:24, Binoy Dalal <binoydalal93@gmail.com> wrote:

> If you are not particular about what part of the field is returned you can
> create copy fields and set a limit on those to store only the number of
> characters you want.
>
> <copyField source="src" dest="dest" maxChars="500">
>
> This will copy over the first 500 chars of the contents of your SRC field
> to your dest field.
> Anything beyond this will be truncated.
>
> On Thu, 18 Feb 2016, 12:00 Anil <anilklce@gmail.com> wrote:
>
> > Hi ,
> >
> > we have around 30 fields in solr document. and we search for text in all
> > fields (by creating a record field with copy field).
> >
> > few fields have huge text .. order of mbs. how i can get only a  fragment
> > of fields in a configurable way.
> >
> > we have to display each field content on UI. so its must to get content
> of
> > each field.
> >
> > for now, i am fetching the content from solr and truncating it in my
> code.
> > but it has poor performance.
> >
> > is there any way to achieve fragmentation (not a highlight fragmentation)
> > in solr ? please advice.
> >
> > Regards,
> > Anil
> >
> --
> Regards,
> Binoy Dalal
>

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