Okay, I changed all paths to absolute path and now it does function but now I 
have the problem that all entries breaks before a german Umlaut (äüöß). The 
entries are stored in a MySQL database (utf8_unicode_ci).

original: "... Verwaltung, dass ein Paket für mich ..."
lucene: "... Verwaltung, dass ein Paket f"

I looked into Zend/Search/Lucene/Field.php in line 61 there is iconv() to 
convert all utf-8 strings to ansi but I get E_NOTICEs by creating the index. 
What can I do to have an index with german Umlauts?

-- Jan

-------- Original-Nachricht --------
Datum: Fri, 13 Oct 2006 00:13:50 +0200
Von: Jan Pieper <[EMAIL PROTECTED]>
An: [email protected]
Betreff: Re: [fw-general] Problems with Zend_Search_Lucene

> There is no difference between the dirname with and without the last 
> slash. Both of them works same.
> 
> [EMAIL PROTECTED] cli]# php foo.php
> deletable
> .
> segments
> ..
> _0.cfs
> 
> -- Jan
> 
> 
> > Hi Jan,
> >
> > Please let me know, what happens if you remove last slash from dirname?
> > -------
> > $index = new Zend_Search_Lucene('../../lucene/', true);
> >   =>
> > $index = new Zend_Search_Lucene('../../lucene', true);
> > -------
> >
> > What is the result of:
> > ------------
> > $dir = opendir('../../lucene/');
> > while ($file = readdir($dir)) {
> >     echo $file . "\n";
> > }
> > ------------
> > and
> > ------------
> > $dir = opendir('../../lucene');
> > while ($file = readdir($dir)) {
> >     echo $file . "\n";
> > }
> > ------------
> > ???
> >
> >
> > That also may be something wrong with directory permissions...
> >
> > With best regards,
> >    Alexander  Veremyev.
> >
> > Jan Pieper wrote:
> >> I am using rev1290 and when I execute this:
> >>
> >> <?php
> >> /* ... */
> >> echo "file_exists('../../lucene/') -> " . 
> >> (file_exists('../../lucene/') ? 'exists' : 'does not exist');
> >> $index = new Zend_Search_Lucene('../../lucene/', true);
> >> /* ... */
> >> ?>
> >>
> >> I´ll get this output:
> >>
> >> file_exists('../../lucene/') -> exists
> >>
> >> Warning: opendir(../../lucene/) [function.opendir]: failed to open 
> >> dir: No such file or directory in 
> >>
> /var/www/html/private/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php 
> >> on line 129
> >>
> >> Warning: readdir(): supplied argument is not a valid Directory 
> >> resource in 
> >>
> /var/www/html/private/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php 
> >> on line 130
> >>
> >> The index will be created and I can use it but theses messages 
> >> shouldn´t be there.
> >>
> >> -- Jan
> >>
> >>
> >
> >
> >

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Reply via email to