Hi,
> Question 1:
> In the 2nd iteration when JahiaContentFieldFacade is initiated, the
additional to the "saving" fields are loaded from the DB with
> JahiaField field = ServicesRegistry.getInstance().getJahiaFieldService()
.loadField(fieldID, loadFlag, jParams, elr); and then added to the list of
fields to be indexed.
>
> What are these fields which also need to be indexed?
calling the method :
JahiaSearchBaseService.indexField(int fieldId, ParamBean jParams);
actually re-index the field in all languages and workflow states (
active/staged ).
It would better to just index the field in the updated language using the
existing method:
JahiaSearchBaseService.addFieldToSearchEngine(JahiaField theField, int
workflowState)
Not tested yet.
> Question 2:
> When the search results are displayed to the user, how the links to the
search results are generated? where these links are stored or composed?
each JahiaSearch hit has a pageUrl and a fileDownloadUrl attributes.They are
composed by JahiaSearchResultHandlerImpl.buildSearchResult(..) ( for page
hits ) and JahiaSearchResultHandlerImpl.buildContainerSearchResult(..) ( for
container hits ).
But you can customize the search result template for your need and compose
theses Url directly in the template.
The last version of the search result template ( provided with Jahia 404 )
uses the JSP Pager taglib
(http://jsptags.com/tags/navigation/pager/index.jsp) that allow customizable
pagination.
Regards,
Khue Nguyen
----- Original Message -----
From: "Mokrinsky Alexey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 14, 2004 5:31 PM
Subject: Indexing workflow concept
> Hi Serge!
> Thank you for Your help, it is always in time.
> I need the answers to some questions, and therefore have investigated the
code, please chek this and correct me if I am wrong:
>
> 1. Each time Jahia Field object is saved, the indexField() method is
called on JahiaBaseSearchService. This is done in order to update the Lucene
search index when the field is changed.
>
> 2. Inside this method, Enumeration enum =
jahiaContentFieldFacade.getFields() is called and the fields are added to
the indexOrders List by the call to addFieldToSearchEngine().
>
> 3. The JahiaBaseSearchService.run() processes this list and adds the
document to the Lucenes IndexWriter.
>
> Question 1:
> In the 2nd iteration when JahiaContentFieldFacade is initiated, the
additional to the "saving" fields are loaded from the DB with
> JahiaField field = ServicesRegistry.getInstance().getJahiaFieldService()
.loadField(fieldID, loadFlag, jParams, elr); and then added to the list of
fields to be indexed.
>
> What are these fields which also need to be indexed?
>
> Question 2:
> When the search results are displayed to the user, how the links to the
search results are generated? where these links are stored or composed?
>
> Sorry for inconvenience,
> With kind regards
> Alex
>
>
> __________
> www.newmail.ru -- бесплатная почта, бесплатный хостинг.