Community Documentation

Exhibit Apachesolr

Last updated November 17, 2008. Created by aufumy on November 8, 2008.
Log in to edit this page.

Creates an exhibit json feed for apachesolr search results. Search terms are passed into args.
Path: /exhibit/drupal/apachesolr_search?args={search terms}

Thanks to Josh Huckabee for the definition and facet definition example.

<div ex:role="viewPanel" class="latest-activity-exhibit">
  <div ex:role="view"
          ex:label="List"
          ex:showAll="true"
          ex:orders=".score"
          ex:directions="descending"
          ex:grouped="false"
          ex:formats="date { mode: short; show: date-time; template: 'MM/dd/yyyy' }">
            <div ex:role="lens" class="search-result" style="display: none;">
              <dt class="title"><a ex:href-content=".url" ex:content=".label"></a></dt>
              <dd>
              <p class="search-snippet" ex:content=".snippet"></p>
              <p class="search-info"><span ex:content=".node_type"></span> <span ex:content=".author"></span> <span ex:content=".created"></span> <span ex:content=".score"></span></p>
              </dd>
            </div>
  </div>
<div ex:role="view"
      ex:viewClass="Timeline"
      ex:label="Timeline"
      ex:formats="date { mode: short; show: date-time; template: 'MM/dd/yyyy' }"
      ex:start=".created"
      ex:end=".created"
      ex:topBandPixelsPerUnit="400"
      ex:eventLabel=".label">
        <div ex:role="lens" class="search-result" style="display: none;">
              <dt class="title"><a ex:href-content=".url" ex:content=".label"></a></dt>
              <dd>
              <p class="search-snippet" ex:content=".snippet"></p>
              <p class="search-info"><span ex:content=".node_type"></span> <span ex:content=".author"></span> <span ex:content=".created"></span> <span ex:content=".score"></span></p>
              </dd>
            </div>
</div>
</div>

<div class="facet" ex:role="facet" ex:expression=".author" ex:collapsible="true" ex:facetlabel="Author"></div>
<div class="facet" ex:role="facet" ex:expression=".node_type" ex:collapsible="true" ex:facetLabel="Content Type"></div>

About this page

Drupal version
Drupal 6.x
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here