Problem indexing PDF
-
Hello,
I trying to index pdf attached to my pages.
there for, i am using WPSOLR Search Engine (latest version), Solr 4.10.3 hosted locally (using bitnami 4.10.3)
WPSolr doesn’t index attachments and even comments and i couldn’t figure why.
any help please?
-
my debugguer is ok now , and as i told last time most attributes are null
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
$postidIf $postid is not null, please have a look in table wp_posts what the post looks like.
$postcount contains 21 (int)
$postid contains 10 (String)what’s in post 10 ?
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.
Can you look in wp_posts what looks like post 10 ?
select * from wp_posts where ID = 10{“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: http://stackoverflow.com/questions/27058991/solr-tomcat-org-apache-solr-common-solrexception-lazy-loading-error
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>`Did you try with WPSOLR 2.5 ? You should get better error management.
The topic ‘Problem indexing PDF’ is closed to new replies.