[MGNLEESOLR-83] Remove hardcoded DEFAULT_SEARCH_FIELD Created: 05/Oct/15  Updated: 15/Apr/16  Resolved: 13/Oct/15

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

Type: Improvement Priority: Neutral
Reporter: Evzen Fochr Assignee: Evzen Fochr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5h
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLEESOLR-67 Support Solr 5 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: Kromeriz 14

 Description   

DEFAULT_SEARCH_FIELD should not be send in query, it should be configured in solrconfig.xml .
But we should have configurable defaultSearchField for purpose if we want to override this default value (should be sent if configured only).



 Comments   
Comment by Milan Divilek [ 09/Oct/15 ]

Reopen: Please do not introduce defaultSearchFieldLocalized variable. Use just defaultSearchField variable. Do not introduce setter/getter for defaultSearchField, set it same as we are setting for example "filterURL".

!StringUtils.isEmpty(defaultSearchField) you can use StringUtils.isNotEmpty which is more readable and in this case I would use StringUtils.isNotBlank.

Comment by Milan Divilek [ 13/Oct/15 ]

Reopen: defaultSearchField is ignored when current language is same as default.

Generated at Mon Feb 12 10:59:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.