Plugin Author
WPSOLR
(@wpsolr)
Hi,
Can you have a look at this support ticket, and tell me if you have similar issues:
https://ww.wp.xz.cn/support/topic/indexing-pdf-attachments-not-working
Hi,
it is not the same issues.
i saw this post before, it doesn’t help.
Plugin Author
WPSOLR
(@wpsolr)
Can you try this query on your local Solr:
/select?q=*%3A*&fq=type%3Aattachment&wt=json&indent=true
It should show your indexed attachments, if any.
{
“responseHeader”:{
“status”:0,
“QTime”:141,
“params”:{
“indent”:”true”,
“q”:”*:*”,
“wt”:”json”,
“fq”:”type:attachment”}},
“response”:{“numFound”:0,”start”:0,”docs”:[]
}}
Plugin Author
WPSOLR
(@wpsolr)
No attachments indexed indeed.
Did you check the ‘attachment’ check-box in Solr Options->Indexing Options ?
yes it is checked and i saved parameters
Plugin Author
WPSOLR
(@wpsolr)
Please empty, then reload your documents in “Solr Operations”.
Then retry the attachments query
same result:
{
“responseHeader”:{
“status”:0,
“QTime”:0,
“params”:{
“indent”:”true”,
“q”:”*:*”,
“wt”:”json”,
“fq”:”type:attachment”}},
“response”:{“numFound”:0,”start”:0,”docs”:[]
}}
should i add some lines to Schema.xml or solrconfig.xml
Plugin Author
WPSOLR
(@wpsolr)
All the attachment code is in a try/catch. If any error occurred during indexing, you should see a nice error message in Solr operations like
Error on attached file "name of the post"
If you don’t, that means the code collecting attachments can’t find any.
Can you tell me more about your attachments ?
sure, my attachments are pdf files uploaded in wordpress library, then attached to the page.
these are samples of attachment code.
fileName
attachedFile
i did it in two different way hoping that one works but …
Plugin Author
WPSOLR
(@wpsolr)
should i add some lines to Schema.xml or solrconfig.xml
Did you install the schema.xml from WPSOLR ?
Did you install the schema.xml from WPSOLR ?
yes, i downloaded it from official site:
in solr Configuration, there is link to find compatible schema.xml
Plugin Author
WPSOLR
(@wpsolr)
Are there any documents in your index ?
Are there any documents in your index ?
yes, i have 6 documents (these are web pages i have created)
“A total of 6 documents are currently in your index”