public static boolean isKeyword(String term) {
        switch (term.toUpperCase()) {
            case "AND":
            case "OR":
            case "NOT":
            //the following are likely not needed, but may cause a rare issue so we'll consider them keywords
            case "TO":
            case "-":
            case "+":
                return true;
            default:
                return false;
        }
    }
@Test
    public void testIsKeyword() {
        assertTrue("'AND' is a keyword and should return true", LuceneUtils.isKeyword("And"));
        assertTrue("'OR' is a keyword and should return true", LuceneUtils.isKeyword("OR"));
        assertTrue("'NOT' is a keyword and should return true", LuceneUtils.isKeyword("nOT"));
        assertTrue("'TO' is being considered a keyword and should return true", LuceneUtils.isKeyword("TO"));
        assertTrue("'+' is being considered a keyword and should return true", LuceneUtils.isKeyword("+"));
        assertTrue("'-' is being considered a keyword and should return true", LuceneUtils.isKeyword("-"));
        assertFalse("'the' is not a keyword and should return false", LuceneUtils.isKeyword("test"));
    }