Skip to content

Point staging Solr at the shared modelseed.org instance - #235

Merged
samseaver merged 1 commit into
stagingfrom
chore/staging-solr-base-url
Aug 28, 2026
Merged

Point staging Solr at the shared modelseed.org instance#235
samseaver merged 1 commit into
stagingfrom
chore/staging-solr-base-url

Conversation

@samseaver

Copy link
Copy Markdown
Contributor

Solr is not deployed per-site the way the other backends are. A single instance at modelseed.org/solr hosts both core sets -- reactions/ compounds/structures and their *_staging twins -- and it is the only instance running the Solr 9 nested-document schema that this build queries (child docs for stoichiometry/thermodynamics, atom_mapping).

staging.modelseed.org/solr is a separate, older deployment: reactions_ staging holds 56,017 docs against 459,198 on the shared instance, the schema is still flat (parent-level stoichiometry/deltag/deltagerr, no doc_type, no atom_mapping), and a [child] query returns the pre-Solr-9 error "Parent filter should be sent as parentFilter=filterCondition". Staging builds pointed at it therefore render stale data and lose every nested-schema feature.

Set the staging default and the hardcoded fallback to the shared instance so staging and production differ only in collection names (reactions_staging vs reactions), which the shared instance serves.

Verified against a local staging-mode build: reaction and compound pages resolve nested children and atom mapping, and the endpoint returns access-control-allow-origin: *, so no proxy rewrite is needed.

Solr is not deployed per-site the way the other backends are. A single
instance at modelseed.org/solr hosts both core sets -- reactions/
compounds/structures and their *_staging twins -- and it is the only
instance running the Solr 9 nested-document schema that this build
queries (child docs for stoichiometry/thermodynamics, atom_mapping).

staging.modelseed.org/solr is a separate, older deployment: reactions_
staging holds 56,017 docs against 459,198 on the shared instance, the
schema is still flat (parent-level stoichiometry/deltag/deltagerr, no
doc_type, no atom_mapping), and a [child] query returns the pre-Solr-9
error "Parent filter should be sent as parentFilter=filterCondition".
Staging builds pointed at it therefore render stale data and lose every
nested-schema feature.

Set the staging default and the hardcoded fallback to the shared
instance so staging and production differ only in collection names
(reactions_staging vs reactions), which the shared instance serves.

Verified against a local staging-mode build: reaction and compound
pages resolve nested children and atom mapping, and the endpoint
returns access-control-allow-origin: *, so no proxy rewrite is needed.
@samseaver
samseaver merged commit 6ba4893 into staging Aug 28, 2026
2 checks passed
@samseaver
samseaver deleted the chore/staging-solr-base-url branch August 28, 2026 00:32
VibhavSetlur added a commit to VibhavSetlur/ModelSEED-UI that referenced this pull request Aug 28, 2026
…ging base

Fix a pre-existing semantic conflict where PR ModelSEED#233 merged after PR ModelSEED#235 (e788d98) without it, leaving expectations naming staging.modelseed.org/solr. The reactions_staging collection name is unchanged because the shared instance serves both core sets.
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