Skip to content

Commit

Permalink
#37 config added
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdos committed Nov 8, 2022
1 parent 2890480 commit 1cce129
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react/src/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import config from './config'

const serverUrlPrefix = config.solr_uri
const defaultQuery = '*:*'
const defaultOperator = 'AND'
const queryFields = {
text: '1.5',
dynamicProperties_MIXS_0000005: '5.0',
Expand Down Expand Up @@ -408,9 +409,9 @@ function Search() {
pageState.pageSize
}&start=${startIndex}&sort=${
pageState.field ? `${pageState.field}+${pageState.sort}` : ''
}${groupParams}&defType=edismax&q.op=AND&qf=${Object.keys(queryFields)
}${groupParams}&defType=edismax&qf=${Object.keys(queryFields)
.map((k) => `${k}^${queryFields[k]}`)
.join('+')}&bq=${boostFields.join('+')}`
.join('+')}&bq=${boostFields.join('+')}&q.op=${defaultOperator}`

// Do HTTP fetch
const response = await fetch(url, { signal: abortController.signal })
Expand Down

0 comments on commit 1cce129

Please sign in to comment.