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 Bai Shen <ba...@gmail.com> on 2013/05/01 13:38:05 UTC

Only return snippets, not content

I have a lot of large files that I've indexed into solr.  Is there a way to
have solr return the snippets instead of the content?  I'm only displaying
the snippets to my users, so transferring the content as well just wastes
bandwidth.

Thanks.

Re: Only return snippets, not content

Posted by Bai Shen <ba...@gmail.com>.
I'll take a look.  Thanks.


On Wed, May 1, 2013 at 8:27 AM, Michael Della Bitta <
michael.della.bitta@appinions.com> wrote:

> Since you're doing this, you might want to make sure lazy field loading is
> on as well. Unfortunately I can't link you to the wiki because it still
> down (uh oh), but it's a setting in solrconfig.xml.
>
>
> Michael Della Bitta
>
> ------------------------------------------------
> Appinions
> 18 East 41st Street, 2nd Floor
> New York, NY 10017-6271
>
> www.appinions.com
>
> Where Influence Isn’t a Game
>
>
> On Wed, May 1, 2013 at 7:48 AM, Bai Shen <ba...@gmail.com> wrote:
>
> > Fixed it.  I just had to add "&fl=" with all of the fields except for
> > content that I wanted returned.
> >
> >
> > On Wed, May 1, 2013 at 7:38 AM, Bai Shen <ba...@gmail.com>
> wrote:
> >
> > > I have a lot of large files that I've indexed into solr.  Is there a
> way
> > > to have solr return the snippets instead of the content?  I'm only
> > > displaying the snippets to my users, so transferring the content as
> well
> > > just wastes bandwidth.
> > >
> > > Thanks.
> > >
> >
>

Re: Only return snippets, not content

Posted by Michael Della Bitta <mi...@appinions.com>.
Since you're doing this, you might want to make sure lazy field loading is
on as well. Unfortunately I can't link you to the wiki because it still
down (uh oh), but it's a setting in solrconfig.xml.


Michael Della Bitta

------------------------------------------------
Appinions
18 East 41st Street, 2nd Floor
New York, NY 10017-6271

www.appinions.com

Where Influence Isn’t a Game


On Wed, May 1, 2013 at 7:48 AM, Bai Shen <ba...@gmail.com> wrote:

> Fixed it.  I just had to add "&fl=" with all of the fields except for
> content that I wanted returned.
>
>
> On Wed, May 1, 2013 at 7:38 AM, Bai Shen <ba...@gmail.com> wrote:
>
> > I have a lot of large files that I've indexed into solr.  Is there a way
> > to have solr return the snippets instead of the content?  I'm only
> > displaying the snippets to my users, so transferring the content as well
> > just wastes bandwidth.
> >
> > Thanks.
> >
>

Re: Only return snippets, not content

Posted by Bai Shen <ba...@gmail.com>.
Fixed it.  I just had to add "&fl=" with all of the fields except for
content that I wanted returned.


On Wed, May 1, 2013 at 7:38 AM, Bai Shen <ba...@gmail.com> wrote:

> I have a lot of large files that I've indexed into solr.  Is there a way
> to have solr return the snippets instead of the content?  I'm only
> displaying the snippets to my users, so transferring the content as well
> just wastes bandwidth.
>
> Thanks.
>