FAQ
The following module was proposed for inclusion in the Module List:

modid: Search::QueryParser
DSLIP: MdpOp
description: parses a fulltext query string
userid: DAMI (Laurent Dami)
chapterid: 11 (String_Lang_Text_Proc)
communities:

similar:
Lucene::QueryParser

rationale:

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 below 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.

enteredby: DAMI (Laurent Dami)
enteredon: Tue Sep 23 18:40:12 2008 GMT

The resulting entry would be:

Search::
::QueryParser MdpOp parses a fulltext query string DAMI


Thanks for registering,

Search Discussions

  • Brian d foy at Sep 24, 2008 at 9:59 pm
    [[ This message was both posted and mailed: see
    the "To," "Cc," and "Newsgroups" headers for details. ]]

    In article <200809231840.m8NIeCZd032305@pause.perl.org>, Perl Authors
    Upload Server wrote:
    The following module was proposed for inclusion in the Module List:

    modid: Search::QueryParser
    DSLIP: MdpOp
    description: parses a fulltext query string
    userid: DAMI (Laurent Dami)
    chapterid: 11 (String_Lang_Text_Proc)
    communities:
    Could this use a third level namespace to denote how you parse the
    queries? Other people might come up with additional ways to
    parse queries. :)

    --
    brian d foy (one of many PAUSE admins), http://pause.perl.org
    archives at http://www.xray.mpe.mpg.de/mailing-lists/modules
    please send all messages back to modules@perl.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmodules @
categoriesperl
postedSep 23, '08 at 6:40p
activeSep 24, '08 at 9:59p
posts2
users2
websitecpan.org...

People

Translate

site design / logo © 2018 Grokbase