Advanced Features & Customization
Using the Liquid Drop
SearchJet provides a Liquid drop object (searchjet) for advanced theme developers to have full control over the integration.
Example: Accessing Search Data in a Template (e.g., search.liquid)
liquid
{% if searchjet.performed %}
  Search Results for "{{ searchjet.terms | escape }}"
  Found {{ searchjet.results_count }} results.
  {% for product in searchjet.results %}
    
  {% endfor %}
  
  {% if searchjet.pagination.pages > 1 %}
    
      {{ searchjet.pagination | default_pagination }}
    
  {% endif %}
{% endif %}
Key Liquid Objects:
searchjet.performed: Returnstrueif a search was performed.searchjet.terms: The user’s search query.searchjet.results: The array of product results.searchjet.results_count: The total number of results.searchjet.pagination: Handles pagination links.
Theme Integration (Manual)
If the automatic injection doesn’t work perfectly with your theme, you can manually replace your theme’s search form.
- Locate your theme’s search form. This is typically in a file like 
sections/header.liquidorlayout/theme.liquid. - Replace the existing form. Find the 
tag withaction="/search"and replace it with the form structure provided in the SearchJet documentation or admin panel, which typically points to the SearchJet-handled search route. 
Example Manual Search Form:
html
(Note: The exact action URL may vary; refer to the app’s instructions).