Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circulars - Lucene search documentation #2502

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions app/routes/docs.circulars.lucene.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
handle:
breadcrumb: Lucene Search
---

import { feature } from '~/lib/env.server'

export function loader() {
if (feature('CIRCULARS_LUCENE')) return null
else throw new Response(null, { status: 404 })
}

# Lucene Search

The Circulars Archive now has a full-text search feature that allows for specifying the field a search term should match. The search feature uses the [Lucene query syntax](https://lucene.apache.org/core/2_9_4/queryparsersyntax.html) to specify the field and search term. The search feature supports the following fields:

- Subject: `subject`
- Body: `body`
- Submitter: `submitter`

By default, a query that does not contain lucene syntax will attempt to match the query against all 3 fields. For example, the query 'SWIFT' will match any circular that contains the word 'SWIFT' in the subject, body, or submitter fields, whereas the query 'subect:SWIFT' will only match circulars where the subject contains the word 'SWIFT'.
Loading