apache / apache/lucene

StandardQueryConfigHandler shoud overwrite toString() to show its configs [LUCENE-4328]

Open
#5,395 0 comments 0 reactions 0 assignees View on GitHub
affects-version:4.0-BETA legacy-jira-priority:Trivial module:queryparser type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

StandardQueryConfigHandler shoud overwrite toString() to show its configs. Now,System.out.println("handler: " + queryParser.getQueryConfigHandler().toString());
only get "handler: org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler@3bc257"

---
Migrated from [LUCENE-4328](https://issues.apache.org/jira/browse/LUCENE-4328) by wunan23

Contributor guide

Open the contributing guide

Research direction

Start by locating StandardQueryConfigHandler in the queryparser flexible standard configuration code and inspect how its configuration state is represented. Verify the current output shown in the issue, then make the handler's string representation show its configs and confirm that printing it no longer produces only the default class-and-hash form.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.