Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Zheng Lin Edwin Yeo
Although I have nested documents in the schema, but if not looking for top 10 parents to facet on children. Currently, I'm only working on the information that is available in children. In my case, each line represents a transaction, and I'm doing the faceting based on these individual transaction

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Zheng Lin Edwin Yeo
I'm fetching the data for the top 10, and pass them to the JSON Facet query to do the calculation. The 100 items is just an example. Some of my collections can have more than 10 million records. Regards, Edwin On 17 February 2017 at 20:51, Michael Kuhlmann wrote: > It's not possible to do suc

Introducing solr-zkutil a CLI Utility for Solr Cloud / ZooKeeper

2017-02-17 Thread ben.demott
I wrote this tool to help me quickly investigate and diagnose Solr Cloud issues. I plan to continually add to the tool, and add conveniences for the collections api in the future such as adding and removing replicas, etc all using an interactive CLI. Hope this is helpful to someone out there. Git

Replicas fail immediately in new collection

2017-02-17 Thread Walter Underwood
Any idea why I would be getting this on a brand new, empty collection on the first update? HTTP ERROR 500 Problem accessing /solr/tutors_shard1_replica9/update. Reason: Server ErrorCaused by:java.lang.NoSuchMethodError: org.apache.solr.update.TransactionLog$LogCodec.writeStr(Ljava/lang/Stri

Post Body from RequestHandler in Solr

2017-02-17 Thread Shashank Pedamallu
Hi all, This might be a very basic question, but I’m struggling to find an answer. How can I access the json I passed as a Post body within Solr RequestHandler. I’m getting the Url Params using SolrQueryRequest.getParams(), but I’m not able to figure out how to get Post Body. Could not find an

Re: Division in JSON Facet

2017-02-17 Thread Chris Hostetter
I'm sorry I didn't see your original question last month, but as you've since realized you can't use functions like "div" in this way. The syntax for getting "stats" in the JSON Faceting API doesn't really make this clear, but the outermost function call you make must be somethign that can "ag

Re: Running Solr 6.3+ on Tomcat : Help Please

2017-02-17 Thread ps40
Hi Shawn, Thanks for the quick response. Unfortunately, slf4j has nothing to do with this. I removed the duplicate jars and the problem persists. Here are the updated logs. Prashant 17-Feb-2017 19:05:24.618 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deplo

Apache Solr Reference Guide for Solr 6.4 released

2017-02-17 Thread Cassandra Targett
The Lucene PMC is pleased to announce that the Solr Reference Guide for Solr 6.4 has been released. This 763-page PDF is the definitive guide to using Apache Solr, the search server built on Apache Lucene. The Guide can be downloaded from: https://dist.apache.org/repos/dist/release/lucene/solr/re

Suggestions order is changed after SOLR version upgrade to 6.4.0

2017-02-17 Thread Uchit Patel
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } I have upgraded SOLR version from 5.1.0 to 6.4.0. I noticed with new version suggestions order is changed little bit.  Uchit Pa

RE: logging query received

2017-02-17 Thread Prateek Jain J
Thanks Alexandre, I was on a load server so, couldn't change any code but I just enabled debug logging from Admin UI and I was able to see query in solr log file; which I turned off after 5 minutes. Thanks again for full list of options available for various scenarios. Regards, Prateek Jain

Re: Atomic updates to increase single field bulk updates?

2017-02-17 Thread Erick Erickson
Well, "it depends". The Atomic update has to first go out to disk and decompress the original stored fields in 16K blocks, then overlay the atomic update on the uncompressed doc, then re-index the doc. 40K times in your example. So yes, the stream going to Solr will be smaller if you do atomic upd

Re: logging query received

2017-02-17 Thread Alexandre Rafalovitch
There is actually several ways to answer this depending on the level of precision your situation requires. And, of course, there are trade-offs. One issue to keep in mind is what you mean by "parameters". Do you want to include all the explicit defaults and overrides that the Request Handler will

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Alexandre Rafalovitch
Am I missing something or do you have nested documents in the schema? It reads like you looking for top 10 parents and then want to facet on children. Is that right? Regards, Alex On 17 Feb 2017 5:35 AM, "Zheng Lin Edwin Yeo" wrote: I'm looking at JSON facet for both of type:terms and type:

Re: Running Solr 6.3+ on Tomcat : Help Please

2017-02-17 Thread Shawn Heisey
On 2/16/2017 11:31 PM, Prashant Saraswat wrote: > *On Solr 6.3 onwards, the following logs are displayed:* > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/home/ubuntu/apache-tomcat-8.5.11/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Michael Kuhlmann
It's not possible to do such thing in one request with faceting only. The problem is that you need a fixed filter on every item when the facet algorithm is iterating over it; you can't look into future elements to find out which ones the top 10 will be. So either you stick with two queries (which

Re: logging query received

2017-02-17 Thread alessandro.benedetti
If you enabled the logging for org.apache.solr.core you should be fine. You can also go more fine grained if you don't need part of the logs. Just remember that the UI will show only from the warning level. If you want to see the query log you need to access the log files. N.B. in a produciton env

Re: Solr - example for using percentiles

2017-02-17 Thread John Blythe
Using the stats component makes short work of things. stats.true&stats.field=foo You can determine which stats fields are retrieved, including which percentiles you'd like to see returned: stats.true&stats.field{percentiles="15,50,85,90}foo https://cwiki.apache.org/confluence/display/solr/The+S

logging query received

2017-02-17 Thread Prateek Jain J
Hi All, How can I log queries received by solr from applications. By query, I mean full URL with parameters executed by application. For example, I expect to see something like this http://solr:8389/my_collection?q=*:*&fq=eventRecordTimestamp:[NOW-6MILLISECONDS TO NOW] I tried to enable

Solr test tagger

2017-02-17 Thread Midas A
Hi , i would like to use solr text tagger for entity extraction . Please guide me that how can i use this for a eCommerce web site . Regards Midas

Re: Solr - example for using percentiles

2017-02-17 Thread Bram Van Dam
On 15/01/17 15:26, Vidal, Gilad wrote: > Hi, > Can you direct me for Java example using Solr percentiles? > The following 3 examples are not seems to be working. Not sure if this is still relevant, but I use the json.facet parameter with SolrJ: query.add("json.facet", "{\"ninety\":\"percentile(v

Re: Atomic updates to increase single field bulk updates?

2017-02-17 Thread Bram Van Dam
> I am aware of the requirements to use atomic updates, but as I understood, > those would not have a big impact on performance and only a slight increase > in index size? AFAIK there won't be a difference in index size between atomic updates and full updates, as the end result is the same. But

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Zheng Lin Edwin Yeo
I'm looking at JSON facet for both of type:terms and type:range. For example, I may have 100 Items in my collections, and each item can have many transactions. But I'm only interested to look at the top 10 items which has the highest transaction rate (ie the highest count) I'm doing a calculation

Re: Sort by field Type String

2017-02-17 Thread alessandro.benedetti
What were you expecting ? Those results seems properly sorted to me for the little I see. If you want to ignore some character and sort in a different way, you may be interested in possibly alternative field types. For example :

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread alessandro.benedetti
I think we are missing something here ... You want to fetch the top 10 results for your query, and allow the user to navigate only those 10 results through facets ? Which facets are you interested in ? Field facets ? Whatever facet you want, calculating it in your client, on 10 results shouldn't b

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Michael Kuhlmann
Since you already have the top x items then, wouldn't it be much easier to collect the "facet" data from the result list on your own? Am 17.02.2017 um 10:18 schrieb Zheng Lin Edwin Yeo: > Hi Michael, > > Yes, I only want the JSON Facet to query based on the returned result set > of the itemNo from

Re: Select TOP 10 items from Solr Query

2017-02-17 Thread Zheng Lin Edwin Yeo
Hi Michael, Yes, I only want the JSON Facet to query based on the returned result set of the itemNo from the 1st query. There's definitely more than the 10, but we just need the top 10 in this case. As the top 10 itemNo may change, so we have to get the returned result set of the itemNo each time

Running Solr 6.3+ on Tomcat : Help Please

2017-02-17 Thread Prashant Saraswat
Hi Guys, I understand that this configuration is unsupported. However, this was working until 6.2. I have looked at the changes document for both solr and lucene for 6.3.0 but I can't figure out what has changed. Can someone point me in the right direction? Here are the details. The following in