Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   multiple keyword search - regular expression, posted by Johannes Liegl on Wed Aug 19 11:49:37 2009 
    icon2.gif   Re: multiple keyword search - regular expression, posted by Stefan Ritt on Thu Sep 3 18:14:26 2009 
       icon2.gif   Re: multiple keyword search - regular expression, posted by Yoshio Imai on Fri Sep 4 13:59:19 2009 
          icon2.gif   Re: multiple keyword search - regular expression, posted by Stefan Ritt on Fri Sep 4 14:07:31 2009 
Message ID: 66529     Entry time: Fri Sep 4 14:07:31 2009     In reply to: 66528
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS: Linux | Windows  ELOG Version: 2.7.2-2012 
Subject: Re: multiple keyword search - regular expression 

Yoshio Imai wrote:
Maybe there is a simple way.
If I understand it correctly, the entries are accepted/rejected for inclusion in the search result list based on one call to regexec. In order to search for N keywords, you could replace this by a loop of N calls to regexec, and only accept the entry if all of them find a match.


That's right, but some people want something like

(NOT "House" and "Car") OR "Tree"

Using regex'es is a bit exotic for most users. So I hope there is some source code which implements a Google type search more or less 1:1. And Google does not use regex'es (is that right?). Here is the syntax for the Google search:

http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=136861
ELOG V3.1.5-3fb85fa6