Changing Response for Group Query - Custom Request Handler

2020-07-03 Thread dnz
o create a custom request handler in order to get number of groups and create the response format which we need for the requester. This format is basically: ---{ //... "response": {     "numFound": 25,  // contains number of grouped results --> for pagination reasons

Re: Compile problems with anonymous SimpleCollector in custom request handler

2017-11-30 Thread Tod Olson
build.xml: Classpath: ${classpathProp} -Tod On Nov 29, 2017, at 6:00 PM, Shawn Heisey mailto:apa...@elyograg.org>> wrote: On 11/29/2017 2:27 PM, Tod Olson wrote: I'm modifying a existing custom request handler for an open source project, and am looking for some help with a co

Re: Compile problems with anonymous SimpleCollector in custom request handler

2017-11-29 Thread Shawn Heisey
On 11/29/2017 2:27 PM, Tod Olson wrote: > I'm modifying a existing custom request handler for an open source project, > and am looking for some help with a compile error around an anonymous > SimpleCollector. The build failure message from ant and the source of the > specific

Compile problems with anonymous SimpleCollector in custom request handler

2017-11-29 Thread Tod Olson
Hi everyone, I'm modifying a existing custom request handler for an open source project, and am looking for some help with a compile error around an anonymous SimpleCollector. The build failure message from ant and the source of the specific method are below. I am compiling on a Mac with

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Ahmet Arslan
MLResponseParser()); > > > >try{ > > response = server.query( params1 ); > >}catch(Exception e){} > > > >SolrDocumentList results = new SolrDocumentList(); > >SolrIndexSearcher searcher = builder.req.getSearcher();

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Mark Robinson
; > > >try{ > > response = server.query( params1 ); > >}catch(Exception e){} > > > >SolrDocumentList results = new SolrDocumentList(); > >SolrIndexSearcher searcher = builder.req.getSearcher(); > >Document doc=searcher.

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Erik Hatcher
ExampleSearchComponent"; >} > >@Override >public String getSource() { > return ""; >} > >//@Override >public String getSourceId() { >return ""; >} > >@Override >public String ge

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Mark Robinson
return "1.0"; } } Thanks and Rgds, Mark. On Sat, Jan 9, 2016 at 12:38 PM, Jack Krupansky wrote: > Sure, you CAN do this, but why would you want to? I mean, what exactly is > the motivation here? If you truly have custom code to execute, fine, but if > all

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Jack Krupansky
Sure, you CAN do this, but why would you want to? I mean, what exactly is the motivation here? If you truly have custom code to execute, fine, but if all you are trying to do is set parameters, a custom request handler is hitting a tack with a sledge hammer. For example, why isn't setting def

Re: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Ahmet Arslan
wrote: Hi, When I initially fire a query against my Solr instance using SOLRJ I pass only, say q=*:*&fq=(myfield:vaue1). I have written a custom RequestHandler, which is what I call in my SolrJ query. Inside this custom request handler can I add more query params like say the facets etc.. so

Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Mark Robinson
Hi, When I initially fire a query against my Solr instance using SOLRJ I pass only, say q=*:*&fq=(myfield:vaue1). I have written a custom RequestHandler, which is what I call in my SolrJ query. Inside this custom request handler can I add more query params like say the facets etc.. so

Re: Calling custom request handler with data import

2015-01-31 Thread Mikhail Khludnev
at your service! On Sat, Jan 31, 2015 at 1:00 PM, vineet yadav wrote: > Hi mikhail, > Thanks for the suggestion. it is helpful. > > Regards > Vineet Yadav > > > On Sat, Jan 31, 2015 at 2:38 PM, Mikhail Khludnev < > mkhlud...@griddynamics.com> wrote: > > > Did you try to specify update processor?

Re: Calling custom request handler with data import

2015-01-31 Thread vineet yadav
Hi mikhail, Thanks for the suggestion. it is helpful. Regards Vineet Yadav On Sat, Jan 31, 2015 at 2:38 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > Did you try to specify update processor?, ie > > On Fri, Jan 30, 2015 at 5:07 PM, vineet yadav > > wrote: > > > > class="org.apac

Re: Calling custom request handler with data import

2015-01-31 Thread Mikhail Khludnev
Did you try to specify update processor?, ie On Fri, Jan 30, 2015 at 5:07 PM, vineet yadav wrote: > class="org.apache.solr.handler.dataimport.DataImportHandler"> > > data-import.xml > /ner > > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics

Re: Calling custom request handler with data import

2015-01-30 Thread Dan Davis
; >> >> >> >> >> >> mychain >> >> >> >> for identifying name entities.NER request handler identifies name entities >> from content field, but store extracted entities in solr fields. >>

Re: Calling custom request handler with data import

2015-01-30 Thread Dan Davis
gt; from content field, but store extracted entities in solr fields. > > NER request handler was working when I am using nutch with solr. But When I > am importing data from mysql, ner request handler is not invoked. So > entities are not stored in solr for imported documents. Can anybo

Calling custom request handler with data import

2015-01-30 Thread vineet yadav
handler was working when I am using nutch with solr. But When I am importing data from mysql, ner request handler is not invoked. So entities are not stored in solr for imported documents. Can anybody tell me how to call custom request handler in data import handler. Otherwise if I can invoke ner

Re: custom request handler

2012-11-11 Thread Amit Nithian
> container. By specifying declarative data in a request handler that > would > > > be enough to produce a service uri for an application. > > > > > > Or have I missed a point ? We have several cores with several apps all > > > with different data query

Re: custom request handler

2012-11-11 Thread Lee Carroll
ral cores with several apps all > > with different data query needs. Maybe 20 request handlers needed to > > support this with active development on going. Basically I want it easy > for > > devs to create a specific request handler suited to their needs. I > thought > >

Re: custom request handler

2012-11-09 Thread Amit Nithian
oped and mainatined every time would be over kill. > Again though I may have missed a point / over emphasised a difficulty? > > Are you saying my custom request handler is to tightly bound to solr? so > the parameters my apps talk is not de-coupled enough from solr? > > Lee C &

Re: custom request handler

2012-11-09 Thread Lee Carroll
and mainatined every time would be over kill. Again though I may have missed a point / over emphasised a difficulty? Are you saying my custom request handler is to tightly bound to solr? so the parameters my apps talk is not de-coupled enough from solr? Lee C On 7 November 2012 19:49, Amit Nithian

Re: custom request handler

2012-11-07 Thread Amit Nithian
olrParams.toSolrParams(nlNew)) Is their a better way? > In particular namedLists are not set up for key look ups... > > Anyway basically is having a custom request handler doing the above the way > to go ? > > Cheers >

custom request handler

2012-11-06 Thread Lee Carroll
SolrParams is a bit clunky. We are basically converting SolrParams into NamedList processing a new NamedList from this and then .setParams(SolrParams.toSolrParams(nlNew)) Is their a better way? In particular namedLists are not set up for key look ups... Anyway basically is having a custom request han

Re: How to retrive value from float field in custom request handler?

2012-09-28 Thread Chris Hostetter
: But why Solr Field is not having a method to retrieve values for all data : types? : something similar to : Object obj = doc.getField("Field1"); : : Why only stringvalue is exposed in this Field class? : : doc.getField("Field1").stringValue() Lucene's "Document" objecta is a very low level

Re: How to retrive value from float field in custom request handler?

2012-09-27 Thread ravicv
tringValue() Thanks, ravi -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-retrive-value-from-float-field-in-custom-request-handler-tp4010478p4010707.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to retrive value from float field in custom request handler?

2012-09-26 Thread Jack Krupansky
he numeric field. -- Jack Krupansky -Original Message- From: ravicv Sent: Wednesday, September 26, 2012 8:19 AM To: solr-user@lucene.apache.org Subject: How to retrive value from float field in custom request handler? HI All, I have wrote a custom request handler which will retrieve some

Re: How to retrive value from float field in custom request handler?

2012-09-26 Thread Ahmet Arslan
Hi Ravic, You can use : SolrPluginUtils.html#docListToSolrDocumentList --- On Wed, 9/26/12, ravicv wrote: > From: ravicv > Subject: How to retrive value from float field in custom request handler? > To: solr-user@lucene.apache.org > Date: Wednesday, September 26, 2012, 3:19

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Chris Hostetter
: custom request handler, so I wrote the minimal class (attached), compiled : and jar'd it, and placed it in example/lib. I added this to solrconfig.xml: that's the crux of hte issue. example/lib is where the jetty libraries live -- not solr plugins. you should either put your custo

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
iption() { return "Flax"; } > >> > public String getSourceId() { return "Flax"; } > >> >public String getSource() { return "Flax"; } > >> >public String getVersion() { return "Flax"; } > >> > > >

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
return "Flax"; } >> >    public String getSource() { return "Flax"; } >> >    public String getVersion() { return "Flax"; } >> > >> > } >> > >> > >> > >> > On 10 August 2011 16:43, simon wrote: >

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
> > > > On 10 August 2011 16:43, simon wrote: > > > >> Th attachment isn't showing up (in gmail, at least). Can you inline > >> the relevant bits of code ? > >> > >> On Wed, Aug 10, 2011 at 11:05 AM, Tom Mortimer wrote: &g

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
; the relevant bits of code ? >> >> On Wed, Aug 10, 2011 at 11:05 AM, Tom Mortimer wrote: >> > Hi, >> > Apologies if this is really basic. I'm trying to learn how to create a >> > custom request handler, so I wrote the minimal cl

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
; > Hi, > > Apologies if this is really basic. I'm trying to learn how to create a > > custom request handler, so I wrote the minimal class (attached), compiled > > and jar'd it, and placed it in example/lib. I added this to > solrconfig.xml: > >

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
Th attachment isn't showing up (in gmail, at least). Can you inline the relevant bits of code ? On Wed, Aug 10, 2011 at 11:05 AM, Tom Mortimer wrote: > Hi, > Apologies if this is really basic. I'm trying to learn how to create a > custom request handler, so I wrote the mini

Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
Hi, Apologies if this is really basic. I'm trying to learn how to create a custom request handler, so I wrote the minimal class (attached), compiled and jar'd it, and placed it in example/lib. I added this to solrconfig.xml: When I started Solr with java -jar start.jar,

Re: Custom request handler/plugin

2011-03-17 Thread javaxmlsoapdev
Thanks for the response. Finally I have decided to build access intelligence into the Solr to pre filter the results by storing required attributes in the index to determine the access. -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-request-handler-plugin

Re: Custom request handler/plugin

2011-03-13 Thread javaxmlsoapdev
ught describing entire scenario would make things clear from requirement and infrastructure point of view. -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-request-handler-plugin-tp2673822p2674913.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom request handler/plugin

2011-03-13 Thread David Smiley (@MITRE.org)
eration those roles. You needn't know the set of all super-admins at any time, just wether the current request is one. ~ David Smiley - Author: https://www.packtpub.com/solr-1-4-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com

Re: Custom request handler/plugin

2011-03-13 Thread David Smiley (@MITRE.org)
ement access control. ~ David Smiley - Author: https://www.packtpub.com/solr-1-4-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-request-handler-plugin-tp2673822p2674267.html Sent from the Solr - User mailing list archive at Nabble.com.

Custom request handler/plugin

2011-03-13 Thread javaxmlsoapdev
YI: I have gone thru SolrPlugin wiki page but need more info of how chaining (if possible) for handlers can be used. e.g. First dixmax and then custom plugin/handler. Please advise. Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-request-handler-p

Custom Request Handler

2010-11-10 Thread Paige Cook
I was reading the in Solr Wiki about creating request handlers - http://wiki.apache.org/solr/SolrRequestHandler and saw that there are two different ways to create a handler: 1. Define as and call via http://localhost:8983/baz/?.. 2. Define as and call via http://localhost:8983/select/?qt=baz.

Re: ClassCastException from custom request handler

2009-08-05 Thread James Brady
OK, problem solved! Well, worked around. I gave up on the new style plugin loading in a multicore Jetty setup, and packaged up my plugin in a rebuilt solr.war. I had tried this before, but only putting the class files in WEB-INF/lib. If I put a jar file in there, it works. 2009/8/4 Chantal Acker

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
James Brady schrieb: Yeah I was thinking T would be SolrRequestHandler too. Eclipse's debugger can't tell me... You could try disassembling. Or Eclipse opens classes in a very rudimentary format when there is no source code attached. Maybe it shows the actual return value there, instead of

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
Yeah I was thinking T would be SolrRequestHandler too. Eclipse's debugger can't tell me... Lot's of other handlers are created with no problem before my plugin falls over, so I don't think it's a problem with T not being what we expected. Do you know of any working examples of plugins I can downl

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
Code is from AbstractPluginLoader in the solr plugin package, 1.3 (the regular stable release, no svn checkout). 80-84 @SuppressWarnings("unchecked") protected T create( ResourceLoader loader, String name, String className, Node node ) throws Exception { return (T) loader.newInstance( classN

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
oresHandler". It should be fully qualified class name - com.foo.path.to.LiveCoresHandler instead. Moreover, I am damn sure that you did not forget to drop your jar into solr.home/lib. Checking once again might not be a bad idea :) Cheers Avlesh On Mon, Aug 3, 2009 at 9:11 PM, James Brady <

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
t;>>>>>> Cheers >>>>>>> Avlesh >>>>>>> >>>>>>> On Mon, Aug 3, 2009 at 10:51 PM, James Brady >>>>>>> >>>>>> >>>>>>>> wrote: >>>>>>>&g

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
t;. It should be fully qualified class name - com.foo.path.to.LiveCoresHandler instead. Moreover, I am damn sure that you did not forget to drop your jar into solr.home/lib. Checking once again might not be a bad idea :) Cheers Avlesh On Mon, Aug 3, 2009 at 9:11 PM, James Brady < james.colin.b

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
t creating a > >> >> > multicore/lib > >> >> > directory and putting my request handler class in there resulted in > >> >> "Error > >> >> > loading class" errors. > >> >> > > >> &

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
gt; > explicitly point at Solr's core and common JARs) fixed the "Error > loading > >> > class" errors, leaving these ClassCastExceptions... > >> > > >> > 2009/8/3 Avlesh Singh > >> > > >> > > Can you cross check t

Re: ClassCastException from custom request handler

2009-08-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
leaving these ClassCastExceptions... >> > >> > 2009/8/3 Avlesh Singh >> > >> > > Can you cross check the class attribute for your handler in >> > solrconfig.xml? >> > > My guess is that it is specified as "solr.LiveCoresHandler". It

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
ck the class attribute for your handler in > > solrconfig.xml? > > > My guess is that it is specified as "solr.LiveCoresHandler". It should > be > > > fully qualified class name - com.foo.path.to.LiveCoresHandler instead. > > > > > &

Re: ClassCastException from custom request handler

2009-08-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
I guess a requesthandler may not be the right component to implement. try implementing a CoreAdminHandler . http://wiki.apache.org/solr/CoreAdmin#head-dfab3233db613c1976e05cdf894aa326ca64d312 On Mon, Aug 3, 2009 at 9:11 PM, James Brady wrote: > Hi, > I'm creating a custom request

Re: ClassCastException from custom request handler

2009-08-03 Thread Avlesh Singh
cified as "solr.LiveCoresHandler". It should be > > fully qualified class name - com.foo.path.to.LiveCoresHandler instead. > > > > Moreover, I am damn sure that you did not forget to drop your jar into > > solr.home/lib. Checking once again might not be a b

Re: ClassCastException from custom request handler

2009-08-03 Thread James Brady
lesh > > On Mon, Aug 3, 2009 at 9:11 PM, James Brady >wrote: > > > Hi, > > I'm creating a custom request handler to return a list of live cores in > > Solr. > > > > On startup, I get this exception for each core: > > > > Jul 31, 2009 5:20:39 PM

Re: ClassCastException from custom request handler

2009-08-03 Thread Avlesh Singh
r jar into solr.home/lib. Checking once again might not be a bad idea :) Cheers Avlesh On Mon, Aug 3, 2009 at 9:11 PM, James Brady wrote: > Hi, > I'm creating a custom request handler to return a list of live cores in > Solr. > > On startup, I get this exception for each cor

ClassCastException from custom request handler

2009-08-03 Thread James Brady
Hi, I'm creating a custom request handler to return a list of live cores in Solr. On startup, I get this exception for each core: Jul 31, 2009 5:20:39 PM org.apache.solr.common. SolrException log SEVERE: java.lang.ClassCastException: LiveCoresHandler

Re: Can't limit return fields in custom request handler

2009-07-14 Thread Osman İZBAT
Thank you very much Chris. Regards. On Mon, Jul 13, 2009 at 4:30 AM, Chris Hostetter wrote: > > : Query filter = new TermQuery(new Term("inStores", "true")); > > that will work if "inStores" is a TextField or a StrField and it's got the > term "true" indexed in it ... but if it's a B

Re: Can't limit return fields in custom request handler

2009-07-12 Thread Chris Hostetter
: Query filter = new TermQuery(new Term("inStores", "true")); that will work if "inStores" is a TextField or a StrField and it's got the term "true" indexed in it ... but if it's a BoolField like in the example schema then the values that appear in the index are "T" and "F" When yo

Re: Can't limit return fields in custom request handler

2009-07-08 Thread Osman İZBAT
II'll look SolrPluginUtils.setReturnFields. I'm running same query : http://localhost:8983/solr/select/?qt=cfacet&q=%2BitemTitle:nokia%20%2BcategoryId:130&start=0&limit=3 I get none empty r

Re: Can't limit return fields in custom request handler

2009-07-07 Thread Chris Hostetter
: But I have a problem like this; when i call : http://localhost:8983/solr/select/?qt=cfacet&q=%2BitemTitle:nokia%20%2BcategoryId:130&start=0&limit=3&fl=id, : itemTitle : i'm getiing all fields instead of only id and itemTitle. Your custom handler is responsible for checking the fl and setting

Can't limit return fields in custom request handler

2009-07-07 Thread Osman İZBAT
Hi. I'm writing my custom faceted request handler. But I have a problem like this; when i call http://localhost:8983/solr/select/?qt=cfacet&q=%2BitemTitle:nokia%20%2BcategoryId:130&start=0&limit=3&fl=id, itemTitle i'm getiing all fields instead of only id and itemTitle. Also i'm gettting no res

Re: Custom Request handler Error:

2009-06-16 Thread Noble Paul നോബിള്‍ नोब्ळ्
gt;>> Now, my webapp runs fine by, >>>>>> http://localhost:8983/mysearch >>>>>> searching also working fine. >>>>>> But, these are not run through my custom handler. So i felt, it >>>>>> wrongly >>>>>> do

Re: Custom Request handler Error:

2009-06-16 Thread noor
Handler's request count is incremented. And another thing, how do we debug solr. ??? Please anybody help me to solve this ... Thanks in advance. Noble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i

Re: Custom Request handler Error:

2009-06-15 Thread Noor
how do we debug solr. ??? Please anybody help me to solve this ... Thanks in advance. Noble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i am new to apache solr. I need to create a custom

Re: Custom Request handler Error:

2009-06-13 Thread noor
7;s request count is incremented. And another thing, how do we debug solr. ??? Please anybody help me to solve this ... Thanks in advance. Noble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i am new to apac

Re: Custom Request handler Error:

2009-06-13 Thread Noble Paul നോബിള്‍ नोब्ळ्
custom handler under QueryHandler's request count remains 0, it >>> doesn't >>> get incremented, when i search something. Rather, statndardReqHandler's >>> request count is incremented. >>> >>> And another thing, how do we debug solr. ???

Re: Custom Request handler Error:

2009-06-13 Thread noor
oble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i am new to apache solr. I need to create a custom request handler class. So i create a new one and changed the solr-config.xml file as, explicit

Re: Custom Request handler Error:

2009-06-13 Thread Noble Paul നോബിള്‍ नोब्ळ्
the console? >> >> On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: >> >>> >>> hi, >>>  i am new to apache solr. >>> I need to create a custom request handler class. So i create a new one >>> and >>> changed the solr-config.

Re: Custom Request handler Error:

2009-06-12 Thread noor
Shalin Shekhar Mangar wrote: On Fri, Jun 12, 2009 at 8:07 PM, noor wrote: explicit tandem true Now, my webapp runs fine by, http://localhost:8983/mysearch searching also working fine. But, these are not run through my custom handler. Specify the full package to your handler cla

Re: Custom Request handler Error:

2009-06-12 Thread Shalin Shekhar Mangar
On Fri, Jun 12, 2009 at 8:07 PM, noor wrote: > > > > explicit > tandem > true > > > > Now, my webapp runs fine by, > http://localhost:8983/mysearch > searching also working fine. > But, these are not run through my custom handler. > Specify the full package to your handler class. Packages st

Re: Custom Request handler Error:

2009-06-12 Thread noor
any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i am new to apache solr. I need to create a custom request handler class. So i create a new one and changed the solr-config.xml file as, explicit tandem true And in m

Re: Custom Request handler Error:

2009-06-12 Thread noor
Yes, Nullpointer Exception. on the line SolrCore coreToRequest = coreContainer.getCore("core2"); Noble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: hi, i am new to apache solr. I need to create a custom request han

Re: Custom Request handler Error:

2009-06-12 Thread Noble Paul നോബിള്‍ नोब्ळ्
is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noor wrote: > hi, >  i am new to apache solr. > I need to create a custom request handler class. So i create a new one and > changed the solr-config.xml file as, >   >       >           explic

Custom Request handler Error:

2009-06-12 Thread Noor
hi, i am new to apache solr. I need to create a custom request handler class. So i create a new one and changed the solr-config.xml file as, explicit tandem true And in my java class, the code is, public class MyCustomHandler extends

Re: Access HTTP headers from custom request handler

2009-04-23 Thread Ryan McKinley
Right, you will have to build a new war with your own subclass of SolrDispatchFilter *rather* then using the packaged one. On Apr 23, 2009, at 12:34 PM, Noble Paul നോബിള്‍ नोब्ळ् wrote: nope. you must edit the web.xml and register the filter there On Thu, Apr 23, 2009 at 3:45 PM, Giovann

Re: Access HTTP headers from custom request handler

2009-04-23 Thread Noble Paul നോബിള്‍ नोब्ळ्
nope. you must edit the web.xml and register the filter there On Thu, Apr 23, 2009 at 3:45 PM, Giovanni De Stefano wrote: > Hello Hoss, > > thank you for your reply. > > I have no problems subclassing the SolrDispatchFilter...but where shall I > configure it? :-) > > I cannot find any doc/wiki ex

Re: Access HTTP headers from custom request handler

2009-04-23 Thread Giovanni De Stefano
Hello Hoss, thank you for your reply. I have no problems subclassing the SolrDispatchFilter...but where shall I configure it? :-) I cannot find any doc/wiki explaining how to configure a custom dispatch filter. I believe it should be in solrconfig.xml ... Any idea? Is there a schema for sol

Re: Access HTTP headers from custom request handler

2009-04-14 Thread Chris Hostetter
: Solr cannot assume that the request would always come from http (think : of EmbeddedSolrServer) .So it assumes that there are only parameters exactly. : Your best bet is to modify SolrDispatchFilter and readthe params and : set them in the SolrRequest Object SolrDispatchFilter is designed to

Re: Access HTTP headers from custom request handler

2009-04-09 Thread Noble Paul നോബിള്‍ नोब्ळ्
Filter before SolrDispatchFIlter and set the current httrequest object into a threadlocal On Thu, Apr 9, 2009 at 6:27 PM, Giovanni De Stefano wrote: > Hello all, > > we are writing a custom request handler and we need to implement some > business logic according to some HTTP header

Access HTTP headers from custom request handler

2009-04-09 Thread Giovanni De Stefano
Hello all, we are writing a custom request handler and we need to implement some business logic according to some HTTP headers. I see there is no easy way to access HTTP headers from the request handler. Moreover it seems to me that the HTTPServletness is lost way before the custom request

Re: Custom Request Handler

2009-03-04 Thread Grant Ingersoll
. -Grant On Mar 4, 2009, at 6:42 AM, dabboo wrote: Hi, Can someone please tell me if we can write our own Custom Request Handler and Custom Solr Core? I want to call execute method of custom solrcore class instead of SolrCore class. Actually, I have to modify getQParser method of SolrCore

Custom Request Handler

2009-03-04 Thread dabboo
Hi, Can someone please tell me if we can write our own Custom Request Handler and Custom Solr Core? I want to call execute method of custom solrcore class instead of SolrCore class. Actually, I have to modify getQParser method of SolrCore class, so that it shud start returning my custom plugin

Re: Query Parsing in Custom Request Handler

2009-01-16 Thread Hana
startDate); > end = new Term("to", endDate); > RangeQuery endQuery = new RangeQuery(start, end, true); > query = new BooleanQuery(); > query.add(new BooleanClause(startQuery, BooleanClause.Occur.MUST)); > query.add(new BooleanClause(endQuery, BooleanClause.Occur.MUST)); > } > return query; > } > > private DateRange getDateRange(String text) > { > if (text == null) > return null; > else > { > DateParser p = new DateParser(); > return p.parseDateRange(text); > } > } > > } > > -- View this message in context: http://www.nabble.com/Query-Parsing-in-Custom-Request-Handler-tp21501351p21504363.html Sent from the Solr - User mailing list archive at Nabble.com.

Query Parsing in Custom Request Handler

2009-01-16 Thread Hana
anClause.Occur.MUST)); } return query; } private DateRange getDateRange(String text) { if (text == null) return null; else { DateParser p = new DateParser(); return p.parseDateRange(text); } } } -- View this message in context: http://www.nabble.com/Query-Parsing-in-Custom-Request-Handler-tp21501351p21501351.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: custom request handler; standard vs dismax

2008-04-01 Thread Erik Hatcher
I just chatted with Matt about this. It took me a few seconds (thinking this might be a browser caching issue without looking at the actual query), but the issue is that dismax does not support the *:* syntax. Removing the q parameter altogether does the trick, with it falling back to the

custom request handler; standard vs dismax

2008-04-01 Thread Matt Mitchell
Hi, I recently started playing with the dismax handler and custom request handlers. When using the solr.StandardRequestHandler class, I get the response that I want; lots of facet values. When I switch to the dismax class, I get none. I've posted my request handler definitions here. Am I missing s

Re: FunctionQuery in a custom request handler

2008-03-25 Thread Chris Hostetter
: It worked, but the problem is that I fail to get a decent ration between my : "other_queries" and "timebias". I would like to keep timebias at ~15% max : (for totally fresh docs), kind of dropping to nothing at ~one week olds. : Adding to BooleanQuery sums the subquery scores, so I guess there's

Re: FunctionQuery in a custom request handler

2008-03-20 Thread evol__
ce implementaion). > > > -Hoss > > > -- View this message in context: http://www.nabble.com/FunctionQuery-in-a-custom-request-handler-tp14838957p16186230.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: FunctionQuery in a custom request handler

2008-01-16 Thread Chris Hostetter
: How do I access the ValueSource for my DateField? I'd like to use a : ReciprocalFloatFunction from inside the code, adding it aside others in the : main BooleanQuery. The FieldType API provides a getValueSource method (so every FieldType picks it's own best ValueSource implementaion). -Hoss

FunctionQuery in a custom request handler

2008-01-15 Thread evol__
text: http://www.nabble.com/FunctionQuery-in-a-custom-request-handler-tp14838957p14838957.html Sent from the Solr - User mailing list archive at Nabble.com.