Skip to content

Commit

Permalink
remove missing references for searchwords
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Jan 15, 2025
1 parent aaaa7c7 commit 3eef734
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Changelog
[cekk]
- Sort solr keywords vocabulary in alphabetical order.
[cekk]
- Remove unused behavior with searchwords and showinsearch fields.
[cekk]

1.5.4 (2024-12-06)
------------------
Expand Down
14 changes: 1 addition & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ You can see an example in config folder of this product.

By default we mapped all base Plone indexes/metadata into SOLR, plus some additional fields::

<field name="searchwords" type="string" indexed="true" stored="true" required="false" multiValued="true" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="showinsearch" type="boolean" indexed="true" stored="false" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="url" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="site_name" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="path_depth" type="pint" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
Expand All @@ -26,8 +24,7 @@ By default we mapped all base Plone indexes/metadata into SOLR, plus some additi
<field name="@type" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="title" type="text_it" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>

- `searchwords`, `view_name`, `path_parents`, `path_depth`, `site_name` are needed for query filter and boost (see below)
- `showinsearch` is needed to allow/disallow single content indexing
- `view_name`, `path_parents`, `path_depth`, `site_name` are needed for query filter and boost (see below)
- `url` is an index where we store frontend url
- `@id`, `@type` and `title` are needed for plone.restapi-like responses

Expand Down Expand Up @@ -113,15 +110,6 @@ text into their title than in the text, you could set something like this::

title^1000.0 SearchableText^1.0 description^500.0

You can also elevate by *searchwords*.

`bq` specifies an additional, optional, query clause that will be added to the user’s main query to influence the score.
For example if we want to boost results that have a specific `searchwords` term::

searchwords:something^1000
Solr will improve ranking for results that have "*something*" in their searchwords field.

`bf` specifies functions (with optional boosts) that will be used to construct FunctionQueries
which will be added to the user’s main query as optional clauses that will influence the score.
Any `function supported natively <https://lucene.apache.org/solr/guide/6_6/function-queries.html>`_ by Solr can be used, along with a boost value.
Expand Down
2 changes: 0 additions & 2 deletions config/dev/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@
<field name="modified" type="date" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="portal_type" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="review_state" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="searchwords" type="lowercase" indexed="true" stored="false" required="false" multiValued="true" termVectors="false" termPositions="false" termOffsets="false" />
<field name="showinsearch" type="boolean" indexed="true" stored="false" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="start" type="date" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="url" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<!-- catchall field per spellcheck, containing all other searchable text fields (implemented via copyField further on in this schema -->
Expand Down
2 changes: 0 additions & 2 deletions config/test/conf/managed-schema
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@
<field name="path_string" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="portal_type" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="review_state" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="searchwords" type="string" indexed="true" stored="false" required="false" multiValued="true" termVectors="false" termPositions="false" termOffsets="false" />
<field name="showinsearch" type="boolean" indexed="true" stored="false" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="sortable_title" type="alphaOnlySort" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="start" type="date" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false" />
<field name="text_no_stem" type="text_no_stem_it" indexed="true" stored="false" required="false" multiValued="true" termVectors="false" termPositions="false" termOffsets="false" />
Expand Down
2 changes: 0 additions & 2 deletions config/test/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@
<field name="portal_type" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="@type" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="review_state" type="string" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="searchwords" type="lowercase" indexed="true" stored="false" required="false" multiValued="true" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="showinsearch" type="boolean" indexed="true" stored="false" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="start" type="date" indexed="true" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="url" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
<field name="@id" type="string" indexed="false" stored="true" required="false" multiValued="false" termVectors="false" termPositions="false" termOffsets="false"/>
Expand Down

0 comments on commit 3eef734

Please sign in to comment.