roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Hermida Méndez <...@tuplaza.es>
Subject activate search
Date Tue, 10 Jun 2008 09:22:14 GMT
Hello to everybody,

 

After a time trying to activate the search in my roller installation search
without success. I back changing some parameters, but the search don’t work.
Always returns “0 results”. In all this time I see the new topics looking
for a solution without success.

 

I have the next configuration now:

 

The roller-custom.propierties is in /(installation roller
directory)/WEB-INF/classes directory. And its content is: 

 

installation.type=manual

database.configurationType=jdbc

database.jdbc.driverClass=com.mysql.jdbc.Driver

database.jdbc.connectionURL=jdbc:mysql://(BBDD-conection)

database.jdbc.username=user

database.jdbc.password=password

mail.configurationType=properties

mail.hostname=mail-server

mail.username=user@mail-server

mail.password=password

#log4j.category.org.apache.roller.weblogger.business.search=DEBUG

config.expandedProperties=search.index.dir

search.index.dir=/dir/Tomcat 5.5/webapps/roller/roller_data/search-index

search.enabled=true

search.index.comments=true

uploads.dir=/dir/Tomcat 5.5/webapps/roller/roller_data/uploads

uploads.url=/

 

I delete roller data search index, and its is created automatically after
restart roller. Its contain is the next files:

 

.index-inconsistent        0kb

_a.cfs                                   47kb

_k.cfs                                   49kb

deletable                            1kb

segments                           1kb

 

when roller start do it:

 

INFO  2008-06-10 10:54:08,859 DatabaseProvider:successMessage - SUCCESS: Got
parameters. Using configuration type JDBC_PROPERTIES

INFO  2008-06-10 10:54:08,859 DatabaseProvider:successMessage - -- Using
JDBC driver class: com.mysql.jdbc.Driver

INFO  2008-06-10 10:54:08,859 DatabaseProvider:successMessage - -- Using
JDBC connection URL: jdbc:mysql://10.10.10.78:3306/observatorio

INFO  2008-06-10 10:54:08,859 DatabaseProvider:successMessage - -- Using
JDBC username: obs_admin

INFO  2008-06-10 10:54:08,859 DatabaseProvider:successMessage - -- Using
JDBC password: [hidden]

INFO  2008-06-10 10:54:08,875 DatabaseProvider:successMessage - SUCCESS:
loaded JDBC driver class [com.mysql.jdbc.Driver]

INFO  2008-06-10 10:54:09,390 WebloggerFactory:bootstrap - Bootstrapping
Roller Weblogger business tier

INFO  2008-06-10 10:54:09,390 WebloggerFactory:bootstrap - Weblogger
Provider = org.apache.roller.weblogger.business.GuiceWebloggerProvider

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - SUCCESS: Got
parameters. Using configuration type JDBC_PROPERTIES

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - -- Using
JDBC driver class: com.mysql.jdbc.Driver

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - -- Using
JDBC connection URL: jdbc:mysql://ip:port/roller

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - -- Using
JDBC username: user

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - -- Using
JDBC password: [hidden]

INFO  2008-06-10 10:54:09,390 DatabaseProvider:successMessage - SUCCESS:
loaded JDBC driver class [com.mysql.jdbc.Driver]

INFO  2008-06-10 10:54:09,406 JPAPersistenceStrategy:<init> - openjpa.Log:
commons

INFO  2008-06-10 10:54:09,765 IndexManagerImpl:<init> - search enabled: true

INFO  2008-06-10 10:54:09,765 IndexManagerImpl:<init> - index dir:
dir\Apache Software Foundation\Tomcat
5.5\webapps\roller\roller_data\search-index

INFO  2008-06-10 10:54:09,781 ReferrerQueueManagerImpl:<init> -
Instantiating Referrer Queue Manager

INFO  2008-06-10 10:54:09,781 ReferrerQueueManagerImpl:<init> - Asynchronous
referrer processing = false

INFO  2008-06-10 10:54:09,781 ThreadManagerImpl:<init> - Instantiating
Thread Manager

INFO  2008-06-10 10:54:09,781 WebloggerFactory:bootstrap - Roller Weblogger
business tier successfully bootstrapped

INFO  2008-06-10 10:54:09,781 WebloggerFactory:bootstrap -    Version: 4.0

INFO  2008-06-10 10:54:09,796 WebloggerFactory:bootstrap -    Revision:
596807

INFO  2008-06-10 10:54:09,796 WebloggerImpl:initialize - Initializing Roller
Weblogger business tier

INFO  2008-06-10 10:54:11,687 ThemeManagerImpl:initialize - Loaded 4 themes
from disk.

INFO  2008-06-10 10:54:11,687 ThreadManagerImpl:initialize - Initializing
task: ScheduledEntriesTask

INFO  2008-06-10 10:54:11,734 ThreadManagerImpl:initialize - Initializing
task: ResetHitCountsTask

INFO  2008-06-10 10:54:11,750 ThreadManagerImpl:initialize - Initializing
task: TurnoverReferersTask

INFO  2008-06-10 10:54:11,781 ThreadManagerImpl:initialize - Initializing
task: PingQueueTask

INFO  2008-06-10 10:54:11,890 WebloggerImpl:initialize - Roller Weblogger
business tier successfully initialized

INFO  2008-06-10 10:54:11,890 RollerContext:initializeSecurityFeatures -
Remember Me enabled: true

INFO  2008-06-10 10:54:11,890 RollerContext:initializeSecurityFeatures -
Password Encryption Algorithm set to 'SHA'

INFO  2008-06-10 10:54:11,890 RollerContext:setupVelocity - Initializing
Velocity

INFO  2008-06-10 10:54:12,218 IPBanFilter:init - INIT IPBanFilter

INFO  2008-06-10 10:54:12,218 RequestMappingFilter:init - Request mapping
filter initialized, 1 mappers configured.

WARN  2008-06-10 10:54:12,437 Settings:getLocale - Settings: Could not parse
struts.locale setting, substituting default VM locale

INFO  2008-06-10 10:54:12,796 PageServlet:init - Initializing PageServlet

INFO  2008-06-10 10:54:12,796 WeblogPageCache:<init> - {id=cache.weblogpage,
enabled=true, timeout=3600, size=400}

INFO  2008-06-10 10:54:12,796 CacheManager:<clinit> - Cache Manager
Initialized.

INFO  2008-06-10 10:54:12,796 CacheManager:<clinit> - Cache Factory =
org.apache.roller.weblogger.util.cache.ExpiringLRUCacheFactoryImpl

INFO  2008-06-10 10:54:12,812 SiteWideCache:<init> - {id=cache.sitewide,
enabled=true, timeout=1800, size=50}

INFO  2008-06-10 10:54:12,812 PageServlet:init - Referrer processing enabled
= true

INFO  2008-06-10 10:54:12,812 FeedServlet:init - Initializing FeedServlet

INFO  2008-06-10 10:54:12,812 WeblogFeedCache:<init> - {id=cache.weblogfeed,
enabled=true, timeout=3600, size=200}

INFO  2008-06-10 10:54:12,812 SearchServlet:init - Initializing
SearchServlet

INFO  2008-06-10 10:54:12,812 ResourceServlet:init - Initializing
ResourceServlet

INFO  2008-06-10 10:54:12,828 CommentServlet:init - Initializing
CommentServlet

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Blacklist Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.BlacklistCommentVa
lidator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Excess Links Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessLinksComment
Validator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Excess Size Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessSizeCommentV
alidator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured 3
CommentValidators

INFO  2008-06-10 10:54:12,843 CommentServlet:init - Comment Throttling
DISABLED

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Blacklist Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.BlacklistCommentVa
lidator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Excess Links Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessLinksComment
Validator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured
CommentValidator: Excess Size Comment Validator /
org.apache.roller.weblogger.ui.rendering.plugins.comments.ExcessSizeCommentV
alidator

INFO  2008-06-10 10:54:12,843 CommentValidationManager:<init> - Configured 3
CommentValidators

INFO  2008-06-10 10:54:12,843 RSDServlet:init - Initializing RSDServlet

INFO  2008-06-10 10:54:12,843 PlanetFeedServlet:init - Initializing
PlanetRssServlet

INFO  2008-06-10 10:54:12,843 PlanetCache:<init> - Planet cache =
{id=cache.planet, enabled=true, timeout=1800, size=10}

INFO  2008-06-10 10:54:12,859 PreviewResourceServlet:init - Initializing
PreviewResourceServlet

INFO  2008-06-10 10:54:12,859 PreviewThemeImageServlet:init - Initializing
PreviewThemeImageServlet

INFO  2008-06-10 10:54:12,859 PreviewServlet:init - Initializing
PreviewServlet

INFO  2008-06-10 10:54:34,828 Blacklist:<clinit> - Initializing MT Blacklist

WARN  2008-06-10 10:54:34,843 Blacklist:loadBlacklistFromFile - Couldn't
find downloaded blacklist, loaded blacklist.txt from classpath instead

INFO  2008-06-10 10:54:34,843 Blacklist:loadBlacklistFromFile - Number of
blacklist string rules: 3102

INFO  2008-06-10 10:54:34,859 Blacklist:loadBlacklistFromFile - Number of
blacklist regex rules: 15

INFO  2008-06-10 10:54:35,000 ContinuousWorkerThread:run -
HitCountQueueProcessor Started.

INFO  2008-06-10 10:54:35,046 RendererManager:<clinit> - Renderer Manager
Initialized.

INFO  2008-06-10 10:54:35,046 RollerVelocity:<clinit> - Initializing
Velocity Rendering Engine

 

 

The web form of results is:

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Search Results for 'milan' : </title>

               <link rel="EditURI"   type="application/rsd+xml" title="RSD"
href="http://web/roller/rsd"/>

        

            <link rel="alternate" type="application/rss+xml"  title="Search
results for 'milan'"  href="http://web/roller/feed/entries/atom?q=milan" />

        <link rel="stylesheet" type="text/css" media="all"
href="/roller/page/basic-custom.css">

</head>

<body>

 

<div class="content_wrapper">

  <div class="content">

    <h1 class="weblogName">title</h1>

 

        <center>

                                <ul class="rCategory">

                   <li class="selected">Todo</li>

                                            <li><a
href="http://web/roller/category/category1">category1</a></li>

                                                <li><a
href="http://web/roller/category/category2">category2</a></li>

                                                <li><a
href="http://web/roller/category/category3">category3</a></li>

                            </ul>

            </center>

 

                <div class="next-previous">

                <div id="searchAgain">

        Has buscado este sitio "<a
href="http://dictionary.com/search?q=milan" title="Definición de {1} en
Dictionary.com" class="dictionary">milan</a>".

        <strong>0</strong> entradas encontradas.

        <form method="get" action="/roller/search" style="margin: 5px">

            <input type="text" id="q" name="q" size="10"

                maxlength="255" value="milan"

                style="padding-left: 1px" /><br />

 

                        <select name="cat">

            <option value="">- In Category -</option>

                          <option >category1</option>

                          <option >category2</option>

                          <option >category3</option>

                        </select>

 

            <input type="submit" value="Buscar otra vez" />

        </form>

 

        <em>También puede <a
href="http://google.com/search?q=milan%20site:http://web/roller/page/null"
class="google">probar la misma búsqueda</a> en <a
href="http://google.com">Google</a>.</em>

    </div>

                    <h3>

       Showing 1 - 0 of total 0 search results

    </h3>

 

                                </div>

 

                    

  </div>

</div>

 

<div class="rightbar_wrapper">

  <div class="rightbar">

               

    <div class="presentacion">

    <h1>title</h1>

    </div>

 

    <h2>Calendario</h2>

    <div class="sidebar">

    <table cellspacing="0" border="0"  summary="Calendario de archivo del
blog" class="hCalendarTable"><tr><td colspan="7" align="center"
class="hCalendarMonthYearRow"><a href="/roller/date/200805" title="Anterior"
class="hCalendarNavBar">&laquo;</a> junio 2008</td></tr><tr><th
class="hCalendarDayNameRow" align="center">lun</th><th
class="hCalendarDayNameRow" align="center">mar</th><th
class="hCalendarDayNameRow" align="center">mié</th><th
class="hCalendarDayNameRow" align="center">jue</th><th
class="hCalendarDayNameRow" align="center">vie</th><th
class="hCalendarDayNameRow" align="center">sáb</th><th
class="hCalendarDayNameRow" align="center">dom</th></tr><tr><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td class="hCalendarDay"><div
class="hCalendarDayTitle">1</div></td></tr><tr><td class="hCalendarDay"><div
class="hCalendarDayTitle">2</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">3</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">4</div></td><td class="hCalendarDayLinked"><div
class="hCalendarDayTitle"><a
href="/roller/date/20080605">5</a></div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">6</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">7</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">8</div></td></tr><tr><td class="hCalendarDay"><div
class="hCalendarDayTitle">9</div></td><td class="hCalendarDayCurrent"><div
class="hCalendarDayTitle">10</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">11</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">12</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">13</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">14</div></td><td class="hCalendarDay"><div
class="hCalendarDayTitle">15</div></td></tr><tr><td
class="hCalendarDay"><div class="hCalendarDayTitle">16</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">17</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">18</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">19</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">20</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">21</div></td><td
class="hCalendarDay"><div
class="hCalendarDayTitle">22</div></td></tr><tr><td
class="hCalendarDay"><div class="hCalendarDayTitle">23</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">24</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">25</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">26</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">27</div></td><td
class="hCalendarDay"><div class="hCalendarDayTitle">28</div></td><td
class="hCalendarDay"><div
class="hCalendarDayTitle">29</div></td></tr><tr><td
class="hCalendarDay"><div class="hCalendarDayTitle">30</div></td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td><td
class="hCalendarDayNotInMonth">&nbsp;</td></tr><tr
class="hCalendarNextPrev"><td colspan="7" align="center"><a
href="/Observatorio/Movilidad/"
class="hCalendarNavBar">Hoy</a></td></tr></table>

    </div>

 

    <h2>Buscar</h2>

    <div class="sidebar">

        <form id="searchForm" method="get" action="/roller/search"

        style="margin: 0; padding: 0" onsubmit="return
validateSearch(this)">

        <p>

          <input type="text" id="q" name="q" size="10"

              maxlength="255" value="milan" />

                    <input type="submit" class="button" value="Buscar" />

        </p>

    </form>

    <script type="text/javascript">

        function validateSearch(form) {

            if (form.q.value == "") {

                alert("Por favor, introduzca un término que buscar para
continuar.");

                form.q.focus();

                return false;

            }

            return true;

        }

    </script>

    </div>

 

    <h2>Links</h2>

    <div class="sidebar">

        <ul class="rFolder">

                    <li class="rFolderItem">

                                <a href="http://web"

               title="title"

               class="rBookmark0">web</a>

                </li>

                    </ul>

    <p></p>

    <p></p> 

    </div>

 

    <h2>Navegación</h2>

    <div class="sidebar">

        <ul class="rNavigationBar">

        <li class="rNavItem">

            <a href="/roller/"><span>roller</span></a>

        </li>

        <li class="rNavItem">

            <a href="http://web/roller/"><span>Weblog</span></a>

        </li>

 
<li class="rNavItem">

                    <a
href="/roller/roller-ui/login-redirect.rol"><span>Entrar</span></a>

                </li>

                        </ul>

      

    

    </div>

      </div>

</div>

 

</body>

</html>

 

Thank you very much for the help.

 

Un saludo,

Ricardo Hermida.
--
TuPlaza Movilidad y Desarrollo
Avda. General Perón nº 6 Posterior.
28020 - Madrid
Tel.: +34 914490735

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message