Skip to content

pucene/index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pucene: Index

The index is the main entry point for pucene. It analyses, stores and searches for documents.

To store the documents it uses a driver which is independent and the reference implementation is done in pucene/dbal-driver.

This is a subtree split of the pucene/pucene project create issues in the main repository.

Usage

<?php

use Pucene\Analysis\StandardAnalyzer;
use Pucene\Index\Driver\MemoryDriverFactory;
use Pucene\Index\PuceneIndexFactory;
use Schranz\Search\SEAL\Schema\Index;
use Schranz\Search\SEAL\Schema\Field;

$driverFactory = new MemoryDriverFactory();

$indexFactory = new PuceneIndexFactory(
    $driverFactory,
    new StandardAnalyzer(),
);

$index = $indexFactory->create(new Index('blog', [
    'id' => new Field\IdentifierField('id'),
    'title' => new Field\TextField('title'),
]));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages