Forum

JiFile per Joomla!

JIFile
JiFile è una componente per Joomla! che permette di indicizzare il contenuto dei file(PDF, DOC, ecc.) per poter effettuare delle ricerche al loro interno.

Scopri di più...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile è una componente per Joomla! che ti permette di condividere le foto dal tuo dispositivo Android sul tuo portale Joomla!.

Scopri di più...  Demo

iFile Framework

IFile
IFile è un framework open source scritto interamente in PHP, permette l'indicizzazione dei contenuti testuali di un documento (DOC, PDF, EXCEL, etc) e una rapida ricerca all'interno degli stessi.

Scopri di più...  Demo

Easy Language

EasyLanguage
Easy Language è un plugin per la gestione semplice ed immediata di testi multilingua in ogni parte possibile di joomla, articoli, componenti, moduli, metadata, template, altri componenti(esempio K2) ecc.

Scopri di più...

Article Book Effect

Article Book Effect
Visualizza gli articoli di Joomla con l'effetto volta pagina di un libro. Questo plugin consente di visualizzare il contenuto di un articolo Joomla come un vero e proprio libro o una rivista, utilizzando tutti i vantaggi di HTML5

Scopri di più...  Demo

 

Fototessera

Article Book Effect
La più famosa Android App che ti permette di stampare le foto tessere per i tuoi documenti con il tuo smartphone Android, in modo semplice ed intuitivo.

Scopri di più...

 

Ombra pazza 3D

Ombra pazza 3D
Ombra Pazza è il puzzle game 3D frenetico e divertente per Android! Prova a ruotare le forme portandole nella posizione delle proprie ombre senza mai fallire! Risolvi una dopo l'altra tutte le combinazioni dei livelli di gioco.

Scopri di più...

 

Admin Countdown

Admin Countdown
Modulo per Joomla! 2.5 e 3.x visualizza nella parte di amministrazione del sito, un timer con il conto alla rovescia del tempo rimanente della tua sessione.

Scopri di più...  Demo

 
Benvenuto, Ospite
Nome utente: Password: Ricordami

ARGOMENTO: Accent in full text search with exact phrase

Accent in full text search with exact phrase 22/07/2013 12:47 #1302

  • fere
  • Avatar di fere
  • OFFLINE
  • Fresh Boarder
  • Messaggi: 2
hi

We're using Joomla 2.5 and JiFile latest version.
We have found a major bug when we do a search with the option "exact phrase" and accents

One example for explanation. tests were made with the following words

la lumière notamment de mesures transitoires

These words are found in the document : test_document.pdf

When we do the full text search with option
"all words" result of 44 documents.
"any words" result of 17 documents
when we open the document present in the results list, <la lumière notamment de mesures transitoires> is not found the phrase but there are aparts words, there is lumière, mesures, transitoires, but there is not a place with the integer sentence
"exact phrase" 0 result but when we do again with the following words <notamment de mesures transitoires> we delete the words <la lumière> in the text search , it returns 1 result the file test_document.pdf contains the exact phrase <notamment de mesures transitoires>

So the accent are not supported in search with exact phrase.

Can you suggest any workaround for this or is this something that could be looked at for a future version of JiFile?

Thanks you

config of jifile:
<ifile>
<root-application>../</root-application>
<duplicate>0</duplicate>
<encoding>UTF-8</encoding>
<doctotxt type="PHP" encoding=""/>
<zend-document>
<fields>
<field name="name" type="Keyword"/>
<field name="extensionfile" type="UnIndexed"/>
<field name="path" type="UnIndexed"/>
<field name="filename" type="UnIndexed"/>
<field name="introtext" type="UnIndexed"/>
<field name="body" type="UnStored"/>
<field name="title" type="Text"/>
<field name="subject" type="Text"/>
<field name="description" type="Text"/>
<field name="creator" type="Text"/>
<field name="keywords" type="Keyword"/>
<field name="created" type="UnStored"/>
<field name="modified" type="UnStored"/>
</fields>
</zend-document>
<analyzer>
<type>
<default>Utf8_CaseInsensitive</default>
</type>
</analyzer>
</ifile>
Ultima modifica: 22/07/2013 12:49 da fere.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Accent in full text search with exact phrase 22/07/2013 12:54 #1303

  • Giampaolo
  • Avatar di Giampaolo
  • OFFLINE
  • Administrator
  • Messaggi: 465
  • Ringraziamenti ricevuti 43
Hi,
you can attach the test_document.pdf, or send us this file at the:

Questo indirizzo email è protetto dagli spambots. E' necessario abilitare JavaScript per vederlo.

Thanks
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Accent in full text search with exact phrase 22/07/2013 14:18 #1304

  • fere
  • Avatar di fere
  • OFFLINE
  • Fresh Boarder
  • Messaggi: 2
Questo allegato è nascosto ai visitatori. Prego accedi o registrati per visualizzarli.

here is the file

thanks
Ultima modifica: 22/07/2013 14:19 da fere.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Accent in full text search with exact phrase 22/07/2013 15:11 #1305

  • Giampaolo
  • Avatar di Giampaolo
  • OFFLINE
  • Administrator
  • Messaggi: 465
  • Ringraziamenti ricevuti 43
Perfect, we test your document and let you know.
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Accent in full text search with exact phrase 22/07/2013 17:56 #1310

  • Giampaolo
  • Avatar di Giampaolo
  • OFFLINE
  • Administrator
  • Messaggi: 465
  • Ringraziamenti ricevuti 43
Hi,
the problem is the IFile library.
On the file:

libraries\ifile\IFile_Indexing_Lucene.php

on line: 331

the library tokenize the phrase for search in the "Index", but not know the "encoding" that your site use for send the string in the "input type" (the encoding that use Joomla! when present the HTML and send the input type).

For exemple, if your Joomla! use UTF-8, you can change the line 331 in:

$tokens = Zend_Search_Lucene_Analysis_Analyzer::getDefault()->tokenize($term->getTerm(), 'UTF-8');

and the library work perfectly.
Thanks for your use case, we now, think how to solved this problem automatically, without change manually the file.
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.

Accent in full text search with exact phrase 23/07/2013 12:13 #1313

  • fere
  • Avatar di fere
  • OFFLINE
  • Fresh Boarder
  • Messaggi: 2
Perfect Thanks very much, it works fine :)
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.