Clinton Gormley > ElasticSearch > ElasticSearch::Util

Download:
ElasticSearch-0.68.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.68   Source  

NAME ^

ElasticSearch::Util - Util subs for ElasticSearch

DESCRIPTION ^

ElasticSearch::Util provides various subs useful to other modules in ElasticSearch.

The only sub useful to users is "filter_keywords()", which can be exported.

SYNOPSIS ^

    use ElasticSearch::Util qw(filter_keywords);

    my $filtered = filter_keywords($unfiltered)

SUBROUTINES ^

filter_keywords()

This tidies up a string to be used as a query string in (eg) "search()" in ElasticSearch so that user input won't cause a search query to return an error.

It is not flexible at all, and may or may not be useful to you.

Have a look at ElasticSearch::QueryParser which gives you much more control over your query strings.

The current implementation does the following:

YMMV

LICENSE AND COPYRIGHT ^

Copyright 2010 - 2011 Clinton Gormley.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: