Using filter to search in SOLR 1.3 with solrj
i can execute what i want simply with using lucene directly Hits hits = searcher.search(customScoreQuery, myQuery.getFilter()); howerver, i can't find the right Class , or method in the API to do this for SOLR the searcher I am using the SOLRServer(Embeded version) to execute the .query... QueryResponse queryResponse = SolrServer.query(customScoreQuery); //will work, BUT I NEED to use the filter as well... Thanks -- Jeryl Cook /^\ Pharaoh /^\ http://pharaohofkush.blogspot.com/ Whether we bring our enemies to justice, or bring justice to our enemies, justice will be done. --George W. Bush, Address to a Joint Session of Congress and the American People, September 20, 2001
Re: Using filter to search in SOLR 1.3 with solrj
what about: SolrQuery query = ...; query.addFilterQuery( type:xxx ); On Oct 2, 2008, at 1:23 PM, Jeryl Cook wrote: i can execute what i want simply with using lucene directly Hits hits = searcher.search(customScoreQuery, myQuery.getFilter()); howerver, i can't find the right Class , or method in the API to do this for SOLR the searcher I am using the SOLRServer(Embeded version) to execute the .query... QueryResponse queryResponse = SolrServer.query(customScoreQuery); //will work, BUT I NEED to use the filter as well... Thanks -- Jeryl Cook /^\ Pharaoh /^\ http://pharaohofkush.blogspot.com/ Whether we bring our enemies to justice, or bring justice to our enemies, justice will be done. --George W. Bush, Address to a Joint Session of Congress and the American People, September 20, 2001
Re: Using filter to search in SOLR 1.3 with solrj
I don't have issues adding a filter query to a SolrQuery... i guess ill look at the source code, i just need to pass the a custom Filter object at runtime before i execute a search using the SolrServer.. currently this is all i can do the below with SOLR... SolrServer.query(customScoreQuery); i need a method that would accept this: searcher.search(customScoreQuery, myfilter ); , like i am able todo using lucene searcher. On Thu, Oct 2, 2008 at 1:43 PM, Ryan McKinley [EMAIL PROTECTED] wrote: what about: SolrQuery query = ...; query.addFilterQuery( type:xxx ); On Oct 2, 2008, at 1:23 PM, Jeryl Cook wrote: i can execute what i want simply with using lucene directly Hits hits = searcher.search(customScoreQuery, myQuery.getFilter()); howerver, i can't find the right Class , or method in the API to do this for SOLR the searcher I am using the SOLRServer(Embeded version) to execute the .query... QueryResponse queryResponse = SolrServer.query(customScoreQuery); //will work, BUT I NEED to use the filter as well... Thanks -- Jeryl Cook /^\ Pharaoh /^\ http://pharaohofkush.blogspot.com/ Whether we bring our enemies to justice, or bring justice to our enemies, justice will be done. --George W. Bush, Address to a Joint Session of Congress and the American People, September 20, 2001 -- Jeryl Cook /^\ Pharaoh /^\ http://pharaohofkush.blogspot.com/ Whether we bring our enemies to justice, or bring justice to our enemies, justice will be done. --George W. Bush, Address to a Joint Session of Congress and the American People, September 20, 2001
Re: Using filter to search in SOLR 1.3 with solrj
On Oct 2, 2008, at 2:24 PM, Jeryl Cook wrote: I don't have issues adding a filter query to a SolrQuery... i guess ill look at the source code, i just need to pass the a custom Filter object at runtime before i execute a search using the SolrServer.. currently this is all i can do the below with SOLR... SolrServer.query(customScoreQuery); i need a method that would accept this: searcher.search(customScoreQuery, myfilter ); , like i am able todo using lucene searcher. aaah -- that lands you in custom plugin territory... perhaps look at building a QueryComponent ryan
Re: Using filter to search in SOLR 1.3 with solrj
i see, ..would be nice to build component within the code.. programmatically...rather than as a component to add to the configuration file..but i will read the docs on how to do this. thanks On Thu, Oct 2, 2008 at 2:37 PM, Ryan McKinley [EMAIL PROTECTED] wrote: On Oct 2, 2008, at 2:24 PM, Jeryl Cook wrote: I don't have issues adding a filter query to a SolrQuery... i guess ill look at the source code, i just need to pass the a custom Filter object at runtime before i execute a search using the SolrServer.. currently this is all i can do the below with SOLR... SolrServer.query(customScoreQuery); i need a method that would accept this: searcher.search(customScoreQuery, myfilter ); , like i am able todo using lucene searcher. aaah -- that lands you in custom plugin territory... perhaps look at building a QueryComponent ryan -- Jeryl Cook /^\ Pharaoh /^\ http://pharaohofkush.blogspot.com/ Whether we bring our enemies to justice, or bring justice to our enemies, justice will be done. --George W. Bush, Address to a Joint Session of Congress and the American People, September 20, 2001