[lucy-user] All entries?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[lucy-user] All entries?

Lee Goddard
Is it possible to have Lucy return all documents in the index?

I'm sure this must be possible and in the docs, but I can't find it....

TIA
Lee
Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] All entries?

Peter Karman
On 9/18/13 8:11 AM, Lee Goddard wrote:
> Is it possible to have Lucy return all documents in the index?
>
> I'm sure this must be possible and in the docs, but I can't find it....
>

http://search.cpan.org/~creamyg/Lucy-0.3.3/lib/Lucy/Index/IndexReader.pod


--
Peter Karman  .  http://peknet.com/  .  [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] All entries?

Lee Goddard

On 18/09/2013 22:02, Peter Karman wrote:
> On 9/18/13 8:11 AM, Lee Goddard  wrote:
 >> Is it possible to have Lucy return all documents in the index?
 >>
 >> I'm sure this must be possible and in the docs, but I can't find
 >> it....
 >>
 >
 > http://search.cpan.org/~creamyg/Lucy-0.3.3/lib/Lucy/Index/IndexReader.pod

Ah, DocReader in the Synopsis — thanks very much. I knew it was obvious.

It's really hard to Google a common word like Lucy, ironically.



Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] All entries?

Marvin Humphrey
On Wed, Sep 18, 2013 at 3:13 PM, Lee <[hidden email]> wrote:

> Ah, DocReader in the Synopsis

Lucy::Search::MatchAllQuery might be another possibility.

  my $searcher = Lucy::Search::IndexSearcher->new(
    index => '/path/to/index',
  );
  my $hits = $searcher->hits(
    query => Lucy::Search::MatchAllQuery->new,
    num_wanted => $searcher->doc_max,
  );
  while (my $hit = $hits->next) {
    print "$hit->{title}\n";
  }

> It's really hard to Google a common word like Lucy, ironically.

Yeah, I sometimes have more luck with 'apache lucy'.

Marvin Humphrey
Reply | Threaded
Open this post in threaded view
|

Re: [lucy-user] All entries?

Lee Goddard
Thanks — I'll try that too.
Lee

On 19/09/2013 01:16, Marvin Humphrey wrote:

> On Wed, Sep 18, 2013 at 3:13 PM, Lee <[hidden email]> wrote:
>
>> Ah, DocReader in the Synopsis
> Lucy::Search::MatchAllQuery might be another possibility.
>
>    my $searcher = Lucy::Search::IndexSearcher->new(
>      index => '/path/to/index',
>    );
>    my $hits = $searcher->hits(
>      query => Lucy::Search::MatchAllQuery->new,
>      num_wanted => $searcher->doc_max,
>    );
>    while (my $hit = $hits->next) {
>      print "$hit->{title}\n";
>    }
>
>> It's really hard to Google a common word like Lucy, ironically.
> Yeah, I sometimes have more luck with 'apache lucy'.
>
> Marvin Humphrey
>