| Pesquisar :: InverttedIndex. Pesquisa :: InverttedIndex é um gerente para mapas de índice invertidos. |
Baixe Agora |
Pesquisar :: InverttedIndex. Classificação e resumo
- Licença:
- Perl Artistic License
- Nome do editor:
- Benjamin Franz
- Site do editor:
- http://www.nihongo.org/snowhare/utilities/ftpweblog/
Pesquisar :: InverttedIndex. Tag
Pesquisar :: InverttedIndex. Descrição
Pesquisa :: InverttedIndex é um gerente para mapas de índice invertidos. Pesquisa :: InverttedIndex é um gerente para mapas de índice invertido.Synopsis Use Search :: InvertedIndex; My $ Database = Search :: InverttedIndex :: db :: db_file_splithash-> NOVO ({-map_name => '/ www / buscar-mecanismo / bancos de dados / teste-maps / teste', -multi => 4, -file_mode => 0644, -lock_mode => 'ex', -lock_timeout => 30, -blocking_locking_locks => 0, -cachesize => 1000000, -Write_through => 0, -read_write_mode => 'rdwr ";}); My $ INV_MAP = SEARCH :: Inverted-> Novo ({-Database => $ Base de dados}); ################################################################ ######## # Exemplo de atualização ####################################### ################### My $ index_data = "Algumas estruturas complexas escalares são ok"; My $ Update = Search :: InverttedIndex :: update-> new ({-group => '"palavras-chave', -Index => 'http://www.nihongo.org/', -data => $ index_data, -keys => {'Alguns' => 10, 'escalar' => 20, 'complexo' => 15, 'estrutura' => 15, 'refs' => 15 ',' são '=> 15,' ok '=> 15,},}); My $ Result = $ INV_MAP-> atualização ({-update => $ update}); ################################################################ ######## # exemplo Query # '-Nodes' é uma lista anon de pesquisa :: invertedindex :: consulta # objetos (isso permite construir booleanos complexos por # nidificação #. # # '-Leafs' é uma lista anon de pesquisa :: InvertedIndex :: Query :: Folha # Objetos (usados para termos de pesquisa individuais). # ################################################# ######### My $ Query_Laf1 = Search :: InvertedIndex :: Query :: folha-> novo ({-KEY => 'complexo', -group => 'palavras-chave', -weight => 1, }); My $ Query_Leaf2 = Search :: InverttedIndex :: Query :: folha-> New ({-key => 'estrutura', -group => 'palavras-chave', -weweight => 1,}); My $ Query_Leaf3 = Search :: InverttedIndex :: Query :: folha-> Novo ({-key => 'ouro', -group => 'palavras-chave', -weight => 1,}); My $ Query1 = Search :: InvertedIndex :: Query-> NOVO ({-Logic => 'e', -weight => 1, -nodes =>> [], -Leafs => ,} ); My $ Query2 = Search :: InverttedIndex :: Query-> NOVO ({-Logic => 'ou', -weight => 1, -nodes => , -leafs => ,}) ; Minha $ Result = $ INV_MAP-> Pesquisa ({-Query => $ query2}); ################################################################ ######## $ INV_MAP-> Fechar; Requisitos: · Perl O que novo neste lançamento: · Patch para o driver de banco de dados MySQL para accomodar alterações no DBD :: MySQL. · Adição de um teste para a funcionalidade do MySQL. · Patch e teste obrigado a Kate L Pugh.
Pesquisar :: InverttedIndex. Software Relacionado