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

Use a weighted search #122

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Use a weighted search #122

wants to merge 27 commits into from

Conversation

extracts
Copy link
Contributor

PR für #37

@extracts extracts requested a review from j3nsch November 16, 2023 19:42
@extracts extracts marked this pull request as draft November 16, 2023 19:43
src/Query.php Outdated Show resolved Hide resolved
Copy link
Member

@j3nsch j3nsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vielen Dank! Die Frage der Konfiguration muss noch geklärt und ein paar Kleinigkeiten angepasst werden.

src/Query.php Outdated Show resolved Hide resolved
src/Query.php Outdated Show resolved Hide resolved
src/Solr/Solarium/Adapter.php Show resolved Hide resolved
test/Solr/Solarium/AdapterSearchingTest.php Outdated Show resolved Hide resolved
test/TestAsset/DocumentBasedTestCase.php Outdated Show resolved Hide resolved
src/Solr/Solarium/Adapter.php Show resolved Hide resolved
@extracts extracts marked this pull request as ready for review November 23, 2023 20:32
@extracts
Copy link
Contributor Author

@j3nsch Dieser PR ist jetzt funktional & verwendbar.
Die Solr-Parameter zur besseren Gewichtung von zusammenhängenden Wortfolgen ("phrase search") sind jedoch noch nicht implementiert.

src/Query.php Outdated Show resolved Hide resolved
@extracts
Copy link
Contributor Author

extracts commented Dec 3, 2023

Nach dem Entfernen der "catchall" Felder text & simple aus dem Solr Schema schlägt einer der existierenden Tests fehl (AdapterSearchingTest->testSearchWithDiacritics()).

Die Solr Standard-Suche sucht jetzt standardmässig nur noch im "Titel"-Feld. Für eine Suche über alle Felder benötigt es jetzt die gewichtete Suche.

extracts and others added 5 commits December 4, 2023 19:55
… default

Setting a field's boost factor to 0 (via the "search.simple" config option) will cause documents with matches just in that field to get a score of 0
…ighted search (which searches across all defined fields instead of just the title field)
Merge in support for PublicationState
Base automatically changed from 4.8.1 to master October 15, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Catch-All-Feldsuche durch gewichtete Suche in einzelnen Indexfeldern ersetzen
2 participants