File: README

package info (click to toggle)
libsearch-queryparser-perl 0.94-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 84 kB
  • ctags: 9
  • sloc: perl: 117; makefile: 2
file content (50 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Search-QueryParser version 1.0
==============================

This module parses a query string into a data structure to be handled
by external search engines.  For examples of such engines, see
File::Tabular and Search::Indexer.

The query string can contain simple terms, "exact phrases", field
names and comparison operators, '+/-' prefixes, parentheses, and
boolean connectors.

The parser can be parameterized by regular expressions for specific
notions of "term", "field name" or "operator" ; see the "new"
method. The parser has no support for lemmatization or other term
transformations : these should be done externally, before passing the
query data structure to the search engine.

The data structure resulting from a parsed query is a tree of terms
and operators, as described in the "parse" method.  The interpretation
of the structure is up to the external search engine that will receive
the parsed query ; the present module does not make any assumption
about what it means to be "equal" or to "contain" a term.

INSTALLATION

To install this module type the following:

   perl Makefile.PL
   make
   make test
   make install

DEPENDENCIES

None 

RELATED MODULES

File::Tabular (management of flat text files containg data organised
in rows and columns) and Search::Indexer (full-text indexing)
make use of the present module.

COPYRIGHT AND LICENCE

Copyright (C) 2005 by Laurent Dami.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.