-
Notifications
You must be signed in to change notification settings - Fork 4
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
search content pages #111
search content pages #111
Conversation
|
||
### Boosting | ||
|
||
Hits from some fields will be prioritized over others, i.e. a matching hit from the title field will be prioritized over a hit from the description field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skulle vi lagt til lista over de søkbare feltenes vekting? Er det dokumentert et annet sted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kan få lagt det inn her, ja. Tror ikke det er dokumentert noe sted ut over koden
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
### Pagination | ||
|
||
All search results will be paginated, it is possible to manipulate the size and page number with the pagination field in the search body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hva innebærer det å manipulere size på søkeresultatet?
Jeg prøvde å google meg frem. Er det page size som menes? "Page size denotes the number of records in each page." I så fall, hvorfor er tallet 1 i eksempelet? Hva representerer dette tallet, hvis det ikke representerer antall treff på hver side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size er antall treff per side, ja. Så når jeg har ´"size": 1´i eksempelet så lager den en side per treff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Da foreslår jeg å endre til "size":10 eller høyere i eksempelet, det gjør det lettere å forstå.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
Example using the open data filter: | ||
```Shell | ||
curl -X POST 'https://search.api.staging.fellesdatakatalog.digdir.no/search' -H 'Content-Type: application/json' -d '{"query":"test","filters":{"openData":{"value":true}}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reasoning-service setter en binærverdi på om et datasett er åpne data eller ikke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ett av kravene som den bruker er at datasettet har allmenn tilgang, så alle datasett som er type åpne data har allmenn tilgang, men ikke alt med allmenn tilgang er åpne data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skjønner. Den informasjonen hadde det vært fint å fremme et sted, Kanskje på en av infosidene i katalogen, så man lettere forstår hva filtrene representerer.
|
||
### Search | ||
|
||
The main search service in Data.norge.no is based on ElasticSearch. This service only searches the text in a few fields, but has filters and other advanced functionality that helps users navigate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skulle vi vist til dokumentasjon som lister opp feltene man kan søke på? Eller gjør vi det per katalog et annet sted? Lenke eller henvise mellom disse sidene når det er på plass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i den tjenesten mapper vi alle ressurstypene over til en generisk modell, så det er de samme feltene for hver type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
og selv om vi ikke bruker det i portal per nå så er det mulig å definere hvilke av de 3 feltene en vil søke i, kan få inn litt info om det i hovedsida til search-service og legge til link herfra
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
og 138fc0e
### LLM | ||
|
||
The LLM search service uses a 'Large Language Model' (LLM) that is built from the same data used in the main search, but will accept naturally worded queries where the other search demands exact wording of titles or keywords. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lenke til side som gir mer detaljert info om LLM når dette er på plass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
### SPARQL | ||
|
||
The SPARQL search service is based on the RDF query language SPARQL, and is our most advanced and powerful search. A user will have to create queries that follows the correct syntax, but will be able to search all harvested data points, not just pre-selected fields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lenke til SPARQL-side for mer info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2ffbc5b
to
e5cca80
Compare
|
||
| Field | Boost | | ||
| ------ | ------ | | ||
| title, partial match | 15 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foreslår å bytte plass på de to øverste vektingene, så det blir lettere å lese. Fra høyest til lavest vekt.
| title, partial match | 15 | | |
| title, full phrase match | 30 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: KjerstiSteien <110605570+KjerstiSteien@users.noreply.github.com>
Co-authored-by: KjerstiSteien <110605570+KjerstiSteien@users.noreply.github.com>
Co-authored-by: KjerstiSteien <110605570+KjerstiSteien@users.noreply.github.com>
Co-authored-by: KjerstiSteien <110605570+KjerstiSteien@users.noreply.github.com>
618509a
to
0bda00d
Compare
0bda00d
to
50ff94c
Compare
resolve Informasjonsforvaltning/fdk-issue-tracker#527