Re: Multiple keyword search, posted by Johannes Liegl on Wed Aug 19 11:54:52 2009
|
Yoichi Aso wrote: | Hi,
I have a question regarding how to perform a multiple-keyword search.
For example, when I want to find entries which contain two keywords "abc" and "def" in the body text but in an unknown order,
one way I came up with was to use a regular expression like this.
(abc|def).*(abc|def)
But this will also match entries containing two "abc" or two "def".
The following one will eliminate this problem.
(abc.*def)|(def.*abc)
But when I use more than two keywords, this type of regular expressions becomes very long (because I have to list all the permutations of the keywords) and it may not fit in the search text field (there seems to be a limit on the length of the search text).
Is there any way to allow multiple-keyword search easily ?
It would be nice if I can just enter two or more keywords separated by white spaces and elog finds entries containing all the keywords.
Thanks,
Yoichi |
Dear Yoichi,
well we are facing the same problem and I would like to ask you if you have been able finding another method searching for keywords in documents?
I am looking forward to getting feedback. Thank you very much for your help in advance.
Best Regards
Johannes Liegl |
Mail when elog entry is expired, posted by Johan Schuring on Tue Jul 27 10:46:27 2010
|
Hi,
Is it possible to set a timestamp on an elog entry say for about 5 days in the future, when it is expired and there are no modifications with the entry you will get a mail.
I cannot find it with search in this forum or is the guides.
It can be very handy when it is possible.
When it is not available, is it possible to make a feature request for it.
Thank you,
Johan |
Re: Mail when elog entry is expired, posted by Johan Schuring on Tue Jul 27 15:48:19 2010
|
Stefan Ritt wrote: |
Johan Schuring wrote: |
Hi,
Is it possible to set a timestamp on an elog entry say for about 5 days in the future, when it is expired and there are no modifications with the entry you will get a mail.
I cannot find it with search in this forum or is the guides.
It can be very handy when it is possible.
When it is not available, is it possible to make a feature request for it.
|
This is not possible at the moment. Sounds to me more like a calendar function. What you could do however is to define an attribute of type "datetime", which you can populate with the expiration date. Then you can do a search to look for entries which are past the expiration date. But you have to do that manually like once per day or so.
|
Thank you for your reply and the tip.
People can allways use another app (mail) for this, it would be nice,nothing more.
|
How to remove email addresses from Guest Display?, posted by Johan Nyberg on Mon May 9 11:45:05 2005
|
Hi,
I would like to have the author email addresses listed only for users which
have logged in, but not for guest users. In the elogd.cfg file I have:
Attributes = Author, Author Email, Category, Subject
Guest Display = Author, Category, Subject, Text
But these attributes
ID Date Author Author Email Category Subject Text
are shown also when visting the logbook as a guest. For the guests I would
like to show only these attributes
ID Date Author Category Subject Text
Any ideas what I am doing wrong or why this does not work?
Johan |
Re: How to remove email addresses from Guest Display?, posted by Johan Nyberg on Mon May 9 16:37:08 2005
|
> > I would like to have the author email addresses listed only for users which
> > have logged in, but not for guest users. In the elogd.cfg file I have:
> >
> > Attributes = Author, Author Email, Category, Subject
> > Guest Display = Author, Category, Subject, Text
> >
> > But these attributes
> >
> > ID Date Author Author Email Category Subject Text
> >
> > are shown also when visting the logbook as a guest. For the guests I would
> > like to show only these attributes
> >
> > ID Date Author Category Subject Text
> >
> > Any ideas what I am doing wrong or why this does not work?
>
> Guest List Display = Author, Category, Subject, Text
> ^^^^
>
> - Stefan
Hi Stefan,
Thanks for the prompt answer and sorry for not reading the docs carefully enough.
The "Guest List Display" is of course what I should use. It works perfectly. And
thanks for the fantastic and very useful ELOG package!
Johan |
How to connect to an ELOG server running behind apache+ssl using the elog command line program?, posted by Johan Nyberg on Sat Oct 15 16:50:25 2005
|
Hi,
I need to post a large number of "old" messages to one of my logbooks and I am trying to modify the script doelog (see http://midas.psi.ch/elogs/Contributions/10) to suit my needs. I am using apache + ssl for secure logins to my ELOG server. The doelog script uses the elog utility program, which is useful for posting ELOG messages from scripts or from the command line. My problem is that I cannot talk to my ELOG server with elog.
Here is what happens:
-------------------------------------------------------------------------------------------------
$ elog -v -h my.server.org -p 443 -l mylogbook -a Category=Other-u myusername mypasswd testmsg
Successfully connected to host my.server.org, port 443
Request sent to host:
POST /mylogbook/ HTTP/1.0
Content-Type: multipart/form-data; boundary=---------------------------1028A8C27FFD1021AAB342B
Host: my.host.org
User-Agent: ELOG
Content-Length: 811
Content sent to host.
Response received:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://my.server.org/"><b>https://my.server.org/</b></a></blockquote></p>
<hr>
<address>Apache Server at <a href="webmaster@my.server.org">my.server.org</a> Port 443</address>
</body></html>
Error transmitting message
-------------------------------------------------------------------------------------------------------
Access to the logbook works perfectly if I use a web browser. If I can find out how to use the elog command line program to connect to my ELOG server running behind apache+ssl, I think I can change the doelog script to suit my needs. Any help is appreciated.
Johan |
Re: How to connect to an ELOG server running behind apache+ssl using the elog command line program?, posted by Johan Nyberg on Mon Oct 17 11:07:10 2005
|
Stefan Ritt wrote: |
Johan Nyberg wrote: | I need to post a large number of "old" messages to one of my logbooks and I am trying to modify the script doelog (see http://midas.psi.ch/elogs/Contributions/10) to suit my needs. I am using apache + ssl for secure logins to my ELOG server. The doelog script uses the elog utility program, which is useful for posting ELOG messages from scripts or from the command line. My problem is that I cannot talk to my ELOG server with elog. |
This is because elog does not support "https" through secure socket layers (SSL). Also elogd does not, that's why you use Apache as your proxy. So the only way for you to use elog is to execute it on the server, where it can directly connect to elogd without going through the ssl layer of Apache. |
Hi Stefan,
Thanks for your advice. As you say I can add entries using elog to my logbooks if I do it from the server on which elogd runs, in which case ssl and apache are bypassed:
$ elog -h localhost -p 8080 ...
Thanks once again for your excellent software!
Johan |
Howto force users to supply an email address when registering?, posted by Johan Nyberg on Thu Oct 20 14:15:14 2005
|
Hi,
Today I noticed that a user had registered without supplying an email address. I am using Self Register = 3, which means I recieve an email from elogd when a new user wants to register. Apparently, I forgot to check that the users email field was empty. This empty email field led to a situation in which no email notifications were sent to the users. The elogd log file looks like this for a user with a registered email address:
20-Oct-2005 12:20:21 [<snip>] {AGATA SDA} RCPT TO: <johan.nyberg@tsl.uu.se>
20-Oct-2005 12:20:21 [<snip>] {AGATA SDA} 250 Ok
while it looks like this for a user with an epmty email address:
20-Oct-2005 12:20:22 [<snip>] {AGATA SDA} RCPT TO: <>
20-Oct-2005 12:20:22 [<snip>] {AGATA SDA} 501 Bad address syntax
When elogd hits this error it stops the process of sending emails, which means that no emails
at all are sent to any of the users. After manually adding the email address of the user with an empty address,
automatic email notification work again.
Is there a way to force the users to supply an email address when they register?
Johan |
|