I have Solr configured in my Drupal 7 installation. I created a view using the documentation provided here, when selecting the filter to search terms & selecting Attachment Content as the field to search the terms in, the view does not display any result. I am able to connect to my Solr installation, have indexed all content and attachments & the text has also been extracted from the attachments. I can see the text results if I search the terms in the search block, however, not in the View created from the Solr Index.
I am able to view the extracted content from the attachments when I query in the core search box, however, the results don't come up if I try to search within the Views filter created from the Solr Search Index.
Below are the Steps I followed to create a View from my Solr Search Index :
1. Created a Solr search index to index the content type, custom fields, attachments and the attachment content.
2. Created a view selecting the Solr Search Index for View type
3. Selected Display Format: Table of Fields
4. Under Exposed Filters: Selected > Search Terms > Exposed Operator to Users > Search Fields - Attachment Content & other Full Text Fields
Please check the attached screenshots for more clarification.
Basis of the above, when I go in the view & put in my keyword to filter the results, it should display the nodes which have the selected terms in their respective attachments. However, when I input the keywords, it comes up blank, with no results
I am fairly new to Solr, using it for the first time, hence a bit confused if I am following the correct procedure.
Please advice, if I have missed out on any step to achieve the desired results?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Solr Search Query Result from Solr Access Log.txt | 11.82 KB | maverick129 |
| #4 | Solr Search Query Result from Browser.txt | 1019 bytes | maverick129 |
| #3 | Solr Search Result from Core Search Box.PNG | 31.83 KB | maverick129 |
| #3 | Solr Search Result from Views Filter.PNG | 60.78 KB | maverick129 |
| Solr Views Filter.PNG | 44.31 KB | maverick129 |
Comments
Comment #2
drunken monkeyFirst off, try to get the query sent to Solr using these instructions. Post it here so I can see whether it looks correct. Then, also try to look through the items indexed in your Solr server to make sure they really contain the right content, especially for the attachment field.
It would of course also be interesting whether you have any warnings or error messages that could be related in your Drupal logs?
PS: It seems you (like many others – it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
So, if you aren't sure your current usage is correct, please just leave the field empty.
Comment #3
maverick129 commentedHi,
Thanks for your reply. I have attached the search query results for your perusal. There are No Warnings or Errors displayed in the Drupal logs
As mentioned in my original post, I can get the search result if I run the query in the Core Search box, but not when I run the same search in the View.
I have attached the screenshots for more clarity
Please advice.
Thanks
Comment #4
maverick129 commentedComment #5
drunken monkeyAre you maybe also using the Apache Solr framework module, too, on your site? The Core Search box, in any case, doesn't have anything to do with the Search API module, so it doesn't really tell us anything whether you get results there or not.
Do you get results in the view if you don't use any filters at all?
The Solr query seems fine, in any case.
Comment #6
maverick129 commentedYes, I do have Apache Solr Framework installed as well. Would that be a cause for this?
Yes, I do get results in the view without the filters. Also, I am able to get results with other filters from the Search Index. Its only the Attachment Content Search filter that doesn't generate any results.
I have the below modules enabled in my Drupal 7 installation -
Solr search
Search API
Search API attachments
Search views
Apache Solr search
Apache Solr search attachments
Apache Solr framework
Apache Solr Views integration
Would any of the above be causing this issue?
Please advice
Thanks
Comment #7
drunken monkeyIn general, the Apache Solr Search Framework module doesn't work very well with the Search API, since it will, under some circumstances, delete the complete Solr index contents, including the data from Search API (which will then have to be manually re-indexed). It also is bad for performance using two completely separate search modules. However, none of this seems to be the cause for this problem.
Rather, it seems like attachments indexing isn't working properly for some reason. If you are able to, please try to look into your Solr index (query for
index_id:YOUR_INDEX_MACHINE_NAMEto only get Search API documents) and see whether the various tm_attachments_* fields have values for items where they should. If not, then probably move this issue to the Attachments module.Comment #8
legolasboI am closing this issue because information was requested over a year ago, but no new information has been provided since. Please reopen this issue with the requested information if you think that this issue is still relevant.