++ed by:

1 PAUSE user

Ricardo SIGNES 😄


Metabase::Index - Interface for Metabase indexing


  package Metabase::Index::Bar;
  use Metabase::Fact;
  use Moose;
  with 'Metabase::Index';
  # define Moose attributes
  sub add {
    my ( $self, $fact ) = @_;
    # index a fact

  sub search {
    my ( $self, %spec ) = @_;
    # conduct search 
    return \@matches;


This describes the interface for indexing and searching facts. Implementations must provide the add and search methods.



  if ( $index->exists( $guid ) ) { do_stuff() }

This interface provides an exists method that calls search() and returns a boolean value.


Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted through the web interface at http://rt.cpan.org/Dist/Display.html?Queue=Metabase

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.


  • David A. Golden (DAGOLDEN)

  • Ricardo J. B. Signes (RJBS)


 Portions Copyright (c) 2008-2009 by David A. Golden
 Portions Copyright (c) 2008-2009 by Ricardo J. B. Signes

Licensed under terms of Perl itself (the "License"). You may not use this file except in compliance with the License. A copy of the License was distributed with this file or you may obtain a copy of the License from http://dev.perl.org/licenses/

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.