Viewing 9 replies - 31 through 39 (of 39 total)
  • Thread Starter oblamine

    (@oblamine)

    my debugguer is ok now , and as i told last time most attributes are null

    Plugin Author WPSolr free

    (@wpsolr)

    Stop at the code calling get_attachment_body( $extractQuery, $post ):

    $attachment_body = wp_Solr::get_attachment_body( $extractQuery, get_post( $postid ) );

    and tell me what’s in:

    $postcount
    $postid

    If $postid is not null, please have a look in table wp_posts what the post looks like.

    Thread Starter oblamine

    (@oblamine)

    $postcount contains 21 (int)
    $postid contains 10 (String)

    Plugin Author WPSolr free

    (@wpsolr)

    what’s in post 10 ?

    Thread Starter oblamine

    (@oblamine)

    no, $post is NULL
    10 is in $postID
    and $errormessage contains :
    Error on attached file “FileAttached”:
    Solr HTTP error: OK (500)

    {“error”:{“msg”:”lazy loading error”,”trace”:”org.apache.solr.common.SolrException: lazy loading error\r\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:262)\r\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:244)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)\r\n\tat org.apache.solr.servlet.

    Plugin Author WPSolr free

    (@wpsolr)

    Can you look in wp_posts what looks like post 10 ?

    select * from wp_posts where ID = 10

    Plugin Author WPSolr free

    (@wpsolr)

    {“error”:{“msg”:”lazy loading error”,”trace”:”org.apache.solr.common.SolrException: lazy loading error\r\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:262)\r\n\tat org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:244)\r\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)\r\n\tat org.apache.solr.servlet.

    Also, It seems your extract plugin might not be not installed: https://stackoverflow.com/questions/27058991/solr-tomcat-org-apache-solr-common-solrexception-lazy-loading-error

    Thread Starter oblamine

    (@oblamine)

    well well, i want to thank you for your help.
    SOLR index file content, when i run this query /select?q=*%3A*&fq=type%3Aattachment&wt=json&indent=true i have file content displayed.
    thanks for your help.
    i changed the hole solr install to perform this.
    now i have an other problem ??
    i have no suggestion when i try to write word in search field and i have this error in server consol:
    ERROR org.apache.solr.core.SolrCore ? org.apache.solr.common.SolrException: No suggester named default was configured
    let me join a part of my solrConfig.xml:
    ` <requestHandler name=”/spell” class=”solr.SearchHandler” startup=”lazy”>
    <lst name=”defaults”>
    <str name=”df”>text</str>
    <!– Solr will use suggestions from both the ‘default’ spellchecker
    and from the ‘wordbreak’ spellchecker and combine them.
    collations (re-written queries) can include a combination of
    corrections from both spellcheckers –>
    <str name=”spellcheck.dictionary”>default</str>
    <str name=”spellcheck.dictionary”>wordbreak</str>
    <str name=”spellcheck”>on</str>
    <str name=”spellcheck.extendedResults”>true</str>
    <str name=”spellcheck.count”>10</str>
    <str name=”spellcheck.alternativeTermCount”>5</str>
    <str name=”spellcheck.maxResultsForSuggest”>5</str>
    <str name=”spellcheck.collate”>true</str>
    <str name=”spellcheck.collateExtendedResults”>true</str>
    <str name=”spellcheck.maxCollationTries”>10</str>
    <str name=”spellcheck.maxCollations”>5</str>
    </lst>
    <arr name=”last-components”>
    <str>spellcheck</str>
    </arr>
    </requestHandler>

    <searchComponent name=”suggest” class=”solr.SuggestComponent”>
    <lst name=”suggester”>
    <str name=”name”>mySuggester</str>
    <str name=”lookupImpl”>FuzzyLookupFactory</str>
    <str name=”dictionaryImpl”>DocumentDictionaryFactory</str>
    <str name=”field”>cat</str>
    <str name=”weightField”>price</str>
    <str name=”suggestAnalyzerFieldType”>string</str>
    </lst>
    </searchComponent>

    <requestHandler name=”/suggest” class=”solr.SearchHandler” startup=”lazy”>
    <lst name=”defaults”>
    <str name=”suggest”>true</str>
    <str name=”suggest.count”>10</str>
    </lst>
    <arr name=”components”>
    <str>suggest</str>
    </arr>
    </requestHandler>`

    Plugin Author WPSolr free

    (@wpsolr)

    Did you try with WPSOLR 2.5 ? You should get better error management.

Viewing 9 replies - 31 through 39 (of 39 total)
  • The topic ‘Problem indexing PDF’ is closed to new replies.