Comment on Tutorial in solrmeter

231 views
Skip to first unread message

solr...@googlecode.com

unread,
Jan 17, 2012, 10:00:08 AM1/17/12
to solr...@googlegroups.com
Comment by matthias...@stylight.de:

By entering Queries using key and tag together with {} solrmeter throws an
error:
e.g.
facet=true&sort=rank5+desc&facet.mincount=1&start=0&q=*:*&facet.field={!key=genderStatistics}gender_id&facet.field={!key=saleStatistics}sale&facet.field={!key=tagStatistics}tag_id&facet.field={!key=brandStatistics}brand_id&facet.field={!key=shopStatistics}shop_id&facet.field={!key=sizeStatistics}size_id&wt=javabin&fq={!tag=genderFilter}gender_id:3&fq={!tag=saleFilter}sale:false&rows=30&version=2

results in:
14:56:45,193 ERROR [STDERR] Jan 17, 2012 2:56:45 PM
org.apache.solr.core.SolrCore execute
INFO: [core_de] webapp=/solr path=/select
params={facet=true&sort=rank5+desc&facet.mincount=1&start=0&q=*:*&facet.field={!key&facet.field={!key&facet.field={!key&facet.field={!key&facet.field={!key&facet.field={!key&facet.field={!key&facet.field={!key&wt=javabin&wt=javabin&fq={!tag&fq={!tag&fq={!tag&rows=30&version=2&version=2}
status=400 QTime=8
14:56:45,515 ERROR [STDERR] Jan 17, 2012 2:56:45 PM
org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException:
org.apache.lucene.queryParser.ParseException: Expected identifier at pos 5
str='{!tag'
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:125)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:173)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.lucene.queryParser.ParseException: Expected
identifier at pos 5 str='{!tag'
at
org.apache.solr.search.QueryParsing$StrParser.getId(QueryParsing.java:761)
at
org.apache.solr.search.QueryParsing$StrParser.getId(QueryParsing.java:741)
at
org.apache.solr.search.QueryParsing.parseLocalParams(QueryParsing.java:153)
at org.apache.solr.search.QParser.getParser(QParser.java:289)
at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:113)
... 24 more

Any recommendations? Thanks in advance, Matthias

For more information:
http://code.google.com/p/solrmeter/wiki/Tutorial

Tomas Fernandez Lobbe

unread,
Jan 17, 2012, 10:19:50 AM1/17/12
to solr...@googlegroups.com
Hi Matthias, what version of solrmeter are you using? I have seen this error in the past and added a fix to the trunk (I can't find an issue for it but I did find the commit. See http://code.google.com/p/solrmeter/source/detail?r=281)

solr...@googlecode.com

unread,
Jan 17, 2012, 10:41:28 AM1/17/12
to solr...@googlegroups.com
Comment by tflo...@gmail.com:

Hi Matthias, what version of solrmeter are you using? I have seen this
error in the past and added a fix to the trunk (I can't find an issue for
it but I did find the commit. See
http://code.google.com/p/solrmeter/source/detail?r=281)

For more information:
http://code.google.com/p/solrmeter/wiki/Tutorial

solr...@googlecode.com

unread,
Jan 17, 2012, 11:09:45 AM1/17/12
to solr...@googlegroups.com
Comment by matthias...@stylight.de:

Thanks, that solved the problem! I`m not sure anymore where I downloaded
it, but it was definitely an old version.

solr...@googlecode.com

unread,
Mar 20, 2012, 9:01:01 AM3/20/12
to solr...@googlegroups.com
Comment by vadim.ki...@memonews.com:

Is it possible to use Solr's DistributedSearch in SolrMeter, with queries
like this (?):
http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=ipod+solr

Thanks :)

solr...@googlecode.com

unread,
Mar 20, 2012, 9:12:04 AM3/20/12
to solr...@googlegroups.com

solr...@googlecode.com

unread,
Mar 20, 2012, 9:41:30 AM3/20/12
to solr...@googlegroups.com
Comment by vadim.ki...@memonews.com:

thanks, it works great:)

solr...@googlecode.com

unread,
Jul 30, 2013, 1:47:02 PM7/30/13
to solr...@googlegroups.com
Comment by sma...@gmail.com:

Is there a way to use non "/select" path? like /spell or anything else?

Tomas Fernandez Lobbe

unread,
Jul 30, 2013, 1:59:04 PM7/30/13
to solr...@googlegroups.com
You can set the query type in the query settings screen, is that what you need?
--
You received this message because you are subscribed to the Google Groups "SolrMeter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrmeter+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



solr...@googlecode.com

unread,
Jul 30, 2013, 1:59:52 PM7/30/13
to solr...@googlegroups.com
Comment by tflo...@gmail.com:

You can set the query type in the query settings screen, is that what you
need?

Artyom Lukanin

unread,
Jul 30, 2013, 2:16:19 PM7/30/13
to solr...@googlegroups.com, codesite...@google.com, solr...@googlecode.com
If you process a query log like me, you can add qt=/spell (or other handlers) to your queries. In this case however you have to modify your solrconfig.xml:
1) set handleSelect=true
2) rename /select handler to something else (e.g. /query)

As you have to rename /select handler, you should add qt=/query to all your usual queries in your query log.

It's very inconvenient, but it works. Strange, but if I send requests directly via SolrJ, I don't have to modify my solrconfig.xml and the query log.

вторник, 30 июля 2013 г., 23:47:02 UTC+6 пользователь solr...@googlecode.com написал:

solr...@googlecode.com

unread,
Jul 30, 2013, 2:25:32 PM7/30/13
to solr...@googlegroups.com
Comment by sma...@gmail.com:

I tried that and when tailed the logs, seems like the request will be
/select?qt=spell

Artyom Lukanin

unread,
Jul 30, 2013, 2:39:35 PM7/30/13
to solr...@googlegroups.com, codesite...@google.com, solr...@googlecode.com
It should be /select?qt=/spell
Yes, /select will process all your handlers, when you set handleSelect=true, so /select cannot be used without a qt param any more. That's why you have to rename it to /query to process your usual requests like /query?q=*:* (and in this case the actual query will be /select?qt=/query&q=*:*)

среда, 31 июля 2013 г., 0:25:32 UTC+6 пользователь solr...@googlecode.com написал:

solr...@googlecode.com

unread,
Jul 30, 2013, 2:50:46 PM7/30/13
to solr...@googlegroups.com
Comment by tflo...@gmail.com:

Make sure you include the slash if the request handler definition in your
solrconfig has it (for example "/spell"). Also, see Artyom's comments in
the users list regarding to this:
https://groups.google.com/forum/#!msg/solrmeter/DqTVSbUxkRM/bxsjpZV2tiEJh

solr...@googlecode.com

unread,
Mar 16, 2014, 1:53:40 AM3/16/14
to solr...@googlegroups.com
Comment by pankajha...@gmail.com:

@matthias...@stylight.com--Can you provide a video link here to understand
the working of solr meter. I am pretty new to solr and dont have any idea
of it.

solr...@googlecode.com

unread,
May 26, 2014, 10:43:23 AM5/26/14
to solr...@googlegroups.com
Comment by nani.il...@gmail.com:

Hi,

Could anyone of you provide a tutorial link on how to start up with
Solrmeter? How to configure query files both for standard and external?
I am new to solr and dont have any idea of it.
Thanks in advance!

For more information:
https://code.google.com/p/solrmeter/wiki/Tutorial

solr...@googlecode.com

unread,
May 26, 2014, 10:44:29 AM5/26/14
to solr...@googlegroups.com
Comment by nani.il...@gmail.com:

I am using solr-4.8.1 and solrmeter-0.3.0.jar. I am trying to do a stress
test with Solrmeter with external mode

Before starting tests, I have selected choose query mode as EXTERNAL and
placed sample queries like shown below

./example/queries.txt contains text as

q=companyid:920
q=companyid:920 AND countryid:19&wt=json&indent=true&start=0&rows=10000
With a single query it works and but if I add extra queries then I am not
getting errors as

[Thread-323]|ERROR|[CacheHistoryStatistic]|15:27:12,125 | Could not
update statistic
com.plugtree.solrmeter.model.exception.StatisticConnectionException:
java.lang.ClassCastException: java.lang.Float cannot be cast to
java.lang.String
at
com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getData(RequestHandlerConnection.java:72)
at
com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic.updateData(CacheHistoryStatistic.java:114)
at
com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic$StatisticUpdateThread.run(CacheHistoryStatistic.java:163)
Please help me on how to build a query file and how to identify their
runtimes. Could you please guide me on how to write external query file
using Solrmeter?

Thank you in advance!
Reply all
Reply to author
Forward
0 new messages