Support full set of fields for search results (node type, author name, date, etc.)
nedjo - March 29, 2007 - 03:53
| Project: | Solr |
| Version: | 5.x-1.x-dev |
| Component: | Documentation |
| Category: | feature request |
| Priority: | normal |
| Assigned: | nedjo |
| Status: | closed |
Jump to:
Description
Attached patch adds support for the same set of fields (minus 'score') generated for core search results. This will improve themability, and also adds support for the nodeapi 'search result' op, so that modules that implement this (e.g., comment, upload) will be able to add their information to search results. For now this is only on the sample documentation. In future I imagine we'll see direct support in the module for generating search results.
| Attachment | Size |
|---|---|
| solr-result-data.patch | 1.08 KB |

#1
I'd tried to avoid this, because it means loading all the nodes before search results can be displayed. It could obviously be useful though, so I've added it to the example (commented out).
#2
Maybe the better way is to (maybe optionally) pass these data to solr in the first place for indexing. I'm vaguely assuming solr can pass back multiple fields in the result set. That would prevent the need to do a node_load for the result set.
#3