Created
May 21, 2012 03:19
-
-
Save zimdo/2760425 to your computer and use it in GitHub Desktop.
WithAgeFieldSource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TermQuery termQuery = new TermQuery(new Term("title", "foo")); | |
ValueSourceQuery valueQuery = new ValueSourceQuery(new AgeFieldSource("created")); | |
CustomScoreQuery query = new CustomScoreQuery(termQuery, valueQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment