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
:
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
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
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
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
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
xampleSearchComponent";
>}
>
>@Override
>public String getSource() {
>return "";
> }
>
> //@Override
>public String getSourceId() {
>return "";
>}
>
>@Override
>public String getVersi
gt; >
> >try{
> > response = server.query( params1 );
> >}catch(Exception e){}
> >
> >SolrDocumentList results = new SolrDocumentList();
> >SolrIndexSearcher searcher = builder.req.getSearcher();
> > Docume
exSearcher searcher = builder.req.getSearcher();
> >Document doc=searcher.doc(0);
> >System.out.println(doc.getFields());
> >
> >
> >builder.rsp.add( "example", doc.getFields());
> >}
> >
> >
> >@Override
>
<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
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
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
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
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:
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
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
. 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
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
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
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
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
for key look ups...
Anyway basically is having a custom request handler doing the above the way
to go ?
Cheers
. 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
: 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
--
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.
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
.
-- 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
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
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
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
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
...@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
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
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
: 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
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
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
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
.
~ 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.
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
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
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
/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
, 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
/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
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
:
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
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
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
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(
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
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
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
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
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
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
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
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
: 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
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
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
: 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
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
:
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
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
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
, 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
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
.
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
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
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
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
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
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,
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
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 ... ...
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
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,
: 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
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
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
.
-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
{
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.
)
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
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
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
: 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
/FunctionQuery-in-a-custom-request-handler-tp14838957p16186230.html
Sent from the Solr - User mailing list archive at Nabble.com.
: 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
-in-a-custom-request-handler-tp14838957p14838957.html
Sent from the Solr - User mailing list archive at Nabble.com.
90 matches
Mail list logo