Changing Response for Group Query - Custom Request Handler

2020-07-03 Thread dnz
to 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
: Classpath: ${classpathProp} -Tod On Nov 29, 2017, at 6:00 PM, Shawn Heisey <apa...@elyograg.org<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 f

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 meth

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 Java

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=*:*=(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: Dynamically Adding query parameters in my custom Request Handler class

2016-01-09 Thread Mark Robinson
Thanks and Rgds, Mark. On Sat, Jan 9, 2016 at 12:38 PM, Jack Krupansky <jack.krupan...@gmail.com> 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 you are trying to d

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

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

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

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

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

2016-01-09 Thread Ahmet Arslan
exSearcher searcher = builder.req.getSearcher(); > >Document doc=searcher.doc(0); > >System.out.println(doc.getFields()); > > > > > >builder.rsp.add( "example", doc.getFields()); > >} > > > > > >@Override >

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

2016-01-09 Thread Ahmet Arslan
<mark123lea...@gmail.com> wrote: Hi, When I initially fire a query against my Solr instance using SOLRJ I pass only, say q=*:*=(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 li

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 defaults

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 vineet.yadav.i...@gmail.com wrote: requestHandler name=/dataimport class=org.apache.solr.handler.dataimport.DataImportHandler lst name=defaults str name=configdata-import.xml/str str

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 vineet.yadav.i...@gmail.com 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

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 vineet.yadav.i...@gmail.com wrote:

Calling custom request handler with data import

2015-01-30 Thread vineet yadav
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 anybody tell me how to call custom request handler in data import handler. Otherwise if I can invoke

Re: Calling custom request handler with data import

2015-01-30 Thread Dan Davis
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 request handler externally, so that it can index person, organization and location in solr

Re: Calling custom request handler with data import

2015-01-30 Thread Dan Davis
. 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 request handler externally, so that it can index

Re: custom request handler

2012-11-11 Thread Lee Carroll
suited to their needs. I thought a servletfilter developed 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

Re: custom request handler

2012-11-11 Thread Amit Nithian
a servletfilter developed 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-09 Thread Amit Nithian
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 anith...@gmail.com wrote: Why not do this in a ServletFilter? Alternatively, I'd just write

Re: custom request handler

2012-11-07 Thread Amit Nithian
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
. 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 handler doing the above

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
-- 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 Ahmet Arslan
Hi Ravic, You can use : SolrPluginUtils.html#docListToSolrDocumentList --- On Wed, 9/26/12, ravicv ravichandra...@gmail.com wrote: From: ravicv ravichandra...@gmail.com Subject: How to retrive value from float field in custom request handler? To: solr-user@lucene.apache.org Date: Wednesday

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

2012-09-26 Thread Jack Krupansky
. -- 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 fields

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: requestHandler name=/flaxtest class=FlaxTestHandler / When I

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 t...@flax.co.uk 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 class

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
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: requestHandler name=/flaxtest class=FlaxTestHandler / When I started Solr with java -jar start.jar, I got

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
Mortimer t...@flax.co.uk 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 class (attached), compiled and jar'd it, and placed it in example/lib. I added this to solrconfig.xml:     requestHandler name=/flaxtest

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
...@flax.co.uk 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 class (attached), compiled and jar'd it, and placed it in example/lib. I added this to solrconfig.xml: requestHandler name=/flaxtest class

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
Mortimer t...@flax.co.uk 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 class (attached), compiled and jar'd it, and placed it in example/lib. I added this to solrconfig.xml:     requestHandler name

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
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: requestHandler name=/flaxtest class=FlaxTestHandler / When I started Solr with java -jar start.jar, I got this: ... SEVERE

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 custom jar's

Re: Custom request handler/plugin

2011-03-18 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-14 Thread javaxmlsoapdev
documents will be kicked out (can't know how many next links to paint) Sorry for the lengthy post but thought 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

Custom request handler/plugin

2011-03-13 Thread javaxmlsoapdev
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-plugin

Re: Custom request handler/plugin

2011-03-13 Thread David Smiley (@MITRE.org)
. ~ 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.

Re: Custom request handler/plugin

2011-03-13 Thread David Smiley (@MITRE.org)
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/Custom-request-handler-plugin

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 requestHandler name=/baz class=my.package.AnotherCustomRequestHandler and call via

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

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
/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.br...@gmail.com wrote: Hi, I'm creating a custom request handler to return a list of live cores in Solr. On startup, I get

Re: ClassCastException from custom request handler

2009-08-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
, James Brady james.colin.br...@gmail.com 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 org.apache.solr.common. SolrException log SEVERE

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
/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.br...@gmail.com wrote: Hi, I'm creating a custom request handler to return a list of live cores in Solr. On startup, I

Re: ClassCastException from custom request handler

2009-08-04 Thread James Brady
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.br...@gmail.com wrote: Hi, I'm creating a custom request handler to return a list of live cores in Solr

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
: 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: ClassCastException from custom request handler

2009-08-04 Thread James Brady
Avlesh On Mon, Aug 3, 2009 at 9:11 PM, James Brady james.colin.br...@gmail.com 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 org.apache.solr.common. SolrException

Re: ClassCastException from custom request handler

2009-08-04 Thread Chantal Ackermann
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.br...@gmail.com 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

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(

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

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

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: ClassCastException from custom request handler

2009-08-03 Thread Avlesh Singh
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.br...@gmail.comwrote: 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

Re: ClassCastException from custom request handler

2009-08-03 Thread James Brady
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 at org.apache.solr.core.RequestHandlers

Re: ClassCastException from custom request handler

2009-08-03 Thread Avlesh Singh
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.br...@gmail.com wrote: Hi, I'm creating a custom request handler to return a list of live cores in Solr

Re: ClassCastException from custom request handler

2009-08-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
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        at org.apache.solr.core.RequestHandlers$1.create

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 hossman_luc...@fucit.orgwrote: : 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

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 you write

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=cfacetq=%2BitemTitle:nokia%20%2BcategoryId:130start=0limit=3http://localhost:8983/solr/select/?qt=cfacetq=%2BitemTitle:nokia%20%2BcategoryId:130start=0limit=3fl=id I get none empty result

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=cfacetq=%2BitemTitle:nokia%20%2BcategoryId:130start=0limit=3fl=id, itemTitle i'm getiing all fields instead of only id and itemTitle. Also i'm gettting no result

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=cfacetq=%2BitemTitle:nokia%20%2BcategoryId:130start=0limit=3fl=id, : itemTitle : i'm getiing all fields instead of only id and itemTitle. Your custom handler is responsible for checking the fl and setting

Re: Custom Request handler Error:

2009-06-16 Thread noor
in advance. Noble Paul ??? ?? wrote: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noornoo...@opentechindia.com 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

Re: Custom Request handler Error:

2009-06-16 Thread Noble Paul നോബിള്‍ नोब्ळ्
: is there any error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noornoo...@opentechindia.com 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,  requestHandler name=/select class

Re: Custom Request handler Error:

2009-06-15 Thread Noor
error on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noornoo...@opentechindia.com 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, requestHandler name=/select class

Re: Custom Request handler Error:

2009-06-13 Thread Noble Paul നോബിള്‍ नोब्ळ्
on the console? On Fri, Jun 12, 2009 at 4:26 PM, Noornoo...@opentechindia.com 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,  requestHandler name=/select class=solr.my.MyCustomHandler      lst

Re: Custom Request handler Error:

2009-06-13 Thread noor
, 2009 at 4:26 PM, Noornoo...@opentechindia.com 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, requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name

Re: Custom Request handler Error:

2009-06-13 Thread Noble Paul നോബിള്‍ नोब्ळ्
PM, Noornoo...@opentechindia.com 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,  requestHandler name=/select class=solr.my.MyCustomHandler     lst name=defaults         str name

Re: Custom Request handler Error:

2009-06-13 Thread noor
. I need to create a custom request handler class. So i create a new one and changed the solr-config.xml file as, requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name=echoParamsexplicit/str str name=qtandem/str str name=debugQuerytrue/str

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, requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name=echoParamsexplicit/str str name

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, Noornoo...@opentechindia.com 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,  requestHandler name=/select class

Re: Custom Request handler Error:

2009-06-12 Thread noor
request handler class. So i create a new one and changed the solr-config.xml file as, requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name=echoParamsexplicit/str str name=qtandem/str str name=debugQuerytrue/str /lst

Re: Custom Request handler Error:

2009-06-12 Thread noor
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, Noornoo...@opentechindia.com wrote: hi, i am new to apache solr. I need to create a custom request handler class

Re: Custom Request handler Error:

2009-06-12 Thread Shalin Shekhar Mangar
On Fri, Jun 12, 2009 at 8:07 PM, noor noo...@opentechindia.com wrote: requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name=echoParamsexplicit/str str name=qtandem/str str name=debugQuerytrue/str /lst /requestHandler Now, my webapp runs fine by,

Re: Custom Request handler Error:

2009-06-12 Thread noor
Shalin Shekhar Mangar wrote: On Fri, Jun 12, 2009 at 8:07 PM, noor noo...@opentechindia.com wrote: requestHandler name=/select class=solr.my.MyCustomHandler lst name=defaults str name=echoParamsexplicit/str str name=qtandem/str str name=debugQuerytrue/str /lst /requestHandler Now, my

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 requestDispatcher ... ...

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 giovanni.destef...@gmail.com wrote: Hello Hoss, thank you for your reply. I have no problems subclassing the SolrDispatchFilter...but where shall I configure it? :-) I cannot

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,

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

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

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: 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

Query Parsing in Custom Request Handler

2009-01-16 Thread Hana
{ 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: Query Parsing in Custom Request Handler

2009-01-16 Thread Hana
) 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

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

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

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 no

Re: FunctionQuery in a custom request handler

2008-03-20 Thread evol__
/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__
-in-a-custom-request-handler-tp14838957p14838957.html Sent from the Solr - User mailing list archive at Nabble.com.