Skip to content

Conversation

Yuvraajb
Copy link
Contributor

@Yuvraajb Yuvraajb commented Jul 1, 2025

1. Enhanced Search Result Prioritization

  • Table rows from key sections (Quantities, Perfusion Models, Perfusion Processes, General Purpose Processes, Derived Processes) are now prioritized at the top of search results.
  • This ensures that when users search for an OSIPI name or a Notation, the relevant table row appears first, rather than being buried among less relevant content.

2. Notation Search is Now Formatting-Insensitive

  • The search logic was improved to match Notation fields regardless of case, subscript, or superscript formatting.
  • For example, searching for Ktrans will match K<sup>trans</sup>, and searching for sj or S_j will match S<sub>j</sub>.

3. JavaScript Post-Processing of Search Results

  • Added new JavaScript code in docs/javascripts/extra.js that:
    • Normalizes both the search query and Notation fields by removing HTML tags, LaTeX, and special formatting, and converting to lowercase.
    • Identifies table row results by checking the result’s location (URL) for key section names.
    • Extracts the Notation field from table row summaries for direct comparison.
    • Reorders search results so that:
      1. Table rows with a Notation or OSIPI name match appear first.
      2. Other table rows appear next.
      3. All other results are shown last..

Copy link

netlify bot commented Jul 1, 2025

Deploy Preview for caplex ready!

Name Link
🔨 Latest commit 8341596
🔍 Latest deploy log https://app.netlify.com/projects/caplex/deploys/68638ea35feaf30008ae110f
😎 Deploy Preview https://deploy-preview-89--caplex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant