Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static Hits getHitsForAStringyQuery(String q) throws IOException {
- // Pardon the weird name, we just didn't want to call it a query string
- final Configuration CONFIGURATION = DEdConfiguration.create();
- NutchBean bean = new NutchBean(CONFIGURATION);
- Query query = Query.parse(q, CONFIGURATION);
- Hits hits = bean.search(query, 10);
- return hits;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement