I need to search full word including hyphen, and not using hyphen "-" as operator in Query Parser Syntax.
For solving, i need to change the current Lucene "StandardAnalyzer", with another "WhitespaceAnalyzer" or "SimpleAnalyzer", but i didn't found where in my code.
I'm using :
- com.jidesoft.lucene.LuceneQuickTableFilterField
- com.jidesoft.lucene.LuceneFilterableTableModel
- com.jidesoft.grid.SortableTable
- Code: Select all
luceneQuickTableFilterField.setTableModel(defaulTableModel);
luceneFilterableTableModel = new LuceneFilterableTableModel(luceneQuickTableFilterField.getDisplayTableModel());
sortableTable.setModel(luceneFilterableTableModel);
Actualy with table containing "MSG-123", searching :
- "MSG" found the entry "MSG-123"
- "MSG-" no found (cause : "-" hyphen interpreted as exclusion operator)
- "MSG-123" no found (cause : "-" hyphen interpreted as exclusion operator)