Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: more lines of search results

more lines of search results 01 Oct 2014 23:38 #1901

  • Marco
  • Marco's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Dear jiFile Team,

Is it possible to show more lines of the search results?
By now I get only 2 lines (~200 characters) of each file,
but I would like to show 5-7 lines (e.g. 500-700 characters) of each document.
Is there a setting somewhere?
Or can I adjust it in a *.php file?

Thank you very much for this great tool.

Best regards
Marco
The administrator has disabled public write access.

more lines of search results 04 Oct 2014 10:55 #1902

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 42
Hi Marco,
for now you need change the character limit in the Script.

1. open the file: administrator/components/com_jifile/libraries/ifile/IFile_Indexing_Abstract.php
2. go to the method: public function addDocument(Zend_Search_Lucene_Document $doc = null) ....
3. Change the introtext limit value from 200 at 500 or other:
// definisce una porzione del testo del corpo utilizzabile come testo
// di introduzione al documento e aggiunge il field "introtext" al documento 
IFileHelper::setFieldType($doc, 'introtext', IFileHelper::introText(mb_substr($doc->getFieldValue('body'), 0, 200)));

Remember that you must reindex all documents for recreate a introtext field with this dimension.

You can also not change this value to display the "body" of document, for more information you can contact the isApp.it Support from here:

www.isapp.it/support-ticket.html
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
The administrator has disabled public write access.

more lines of search results 13 Oct 2014 15:45 #1912

  • Marco
  • Marco's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Many thanks for your answer!
I changed the value from 200 to 500, but it still only shows 200 characters.
I want to show the results as Keyword In Context (KWIC) and have defined the "Body" field in the Configuration Section as type "Text".

Many thanks for your help.
Best regards
Marco
The administrator has disabled public write access.

more lines of search results 13 Oct 2014 23:17 #1913

  • Giampaolo
  • Giampaolo's Avatar
  • OFFLINE
  • Administrator
  • Posts: 465
  • Thank you received: 42
Hi Marco,
you can open a ticket and if you want you can write in Italian Language (if you are italian) to verify and solved your problem.

www.isapp.it/en/support-ticket.html

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
The administrator has disabled public write access.