Package ubic.gemma.core.search.lucene
Class LuceneQueryUtilsTest
- java.lang.Object
-
- ubic.gemma.core.search.lucene.LuceneQueryUtilsTest
-
public class LuceneQueryUtilsTest extends Object
-
-
Constructor Summary
Constructors Constructor Description LuceneQueryUtilsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestExtractDnf()voidtestExtractDnfWithNestedAndInSubClause()voidtestExtractDnfWithNestedOrInClause()voidtestExtractDnfWithOntologyTerms()voidtestExtractDnfWithQuotedSpaces()voidtestExtractDnfWithUris()voidtestExtractTerms()voidtestIsWildcard()voidtestPrepareDatabaseQuery()voidtestPrepareDatabaseQueryForInexactMatch()voidtestPrepareDatabaseQueryWithUri()voidtestPrepareTermUriQuery()voidtestQueryWithHyphen()Make sure that a query containing a hyphen is not parsed as a negative query.voidtestQuote()
-
-
-
Method Detail
-
testExtractTerms
public void testExtractTerms() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnf
public void testExtractDnf() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnfWithQuotedSpaces
public void testExtractDnfWithQuotedSpaces() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnfWithNestedOrInClause
public void testExtractDnfWithNestedOrInClause() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnfWithNestedAndInSubClause
public void testExtractDnfWithNestedAndInSubClause() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnfWithUris
public void testExtractDnfWithUris() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testExtractDnfWithOntologyTerms
public void testExtractDnfWithOntologyTerms() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testPrepareDatabaseQuery
public void testPrepareDatabaseQuery() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testPrepareDatabaseQueryWithUri
public void testPrepareDatabaseQueryWithUri() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testPrepareDatabaseQueryForInexactMatch
public void testPrepareDatabaseQueryForInexactMatch() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testIsWildcard
public void testIsWildcard()
-
testPrepareTermUriQuery
public void testPrepareTermUriQuery() throws ubic.gemma.core.search.SearchException- Throws:
ubic.gemma.core.search.SearchException
-
testQuote
public void testQuote()
-
testQueryWithHyphen
public void testQueryWithHyphen() throws ubic.gemma.core.search.SearchExceptionMake sure that a query containing a hyphen is not parsed as a negative query.- Throws:
ubic.gemma.core.search.SearchException
-
-