Exception while unmarshalling response in SolrJ

2014-04-12 Thread Prathik Puthran
Hi, I am using SolrJ client to send request to Solr. But instead of calling Solr directly SolrJ communicates with my proxy server which in turn calls Solr and gets the response in javabin format and returns back the response to the client in the same format. The proxy server is written using play

Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Furkan, I am not sure how this could be a security concern, what I am actually asking is an approach to integrate the spellchecker search component within the default request handler. Thanks. On Sat, Apr 12, 2014 at 5:38 PM, Furkan KAMACI wrote: > Hi; > > I do not want to change the direction

Re: stucked with log4j configuration

2014-04-12 Thread Bill Bell
Well I hope log4j2 is something Solr supports when GA Bill Bell Sent from mobile > On Apr 12, 2014, at 7:26 AM, Aman Tandon wrote: > > I have upgraded my solr4.2 to solr 4.7.1 but in my logs there is an error > for log4j > > log4j: Could not find resource > > Please find the attachment of th

Re: svn vs GIT

2014-04-12 Thread Aman Tandon
Thanks Furkan...its aman not amon hahah...:D With Regards Aman Tandon On Sun, Apr 13, 2014 at 4:26 AM, Furkan KAMACI wrote: > Hi Amon; > > There has been a conversation about it at dev list: > > http://search-lucene.com/m/PrTmPXyDlv/The+Old+Git+Discussion&subj=Re+The+Old+Git+Discussion > On >

Re: Fetching document by comparing date to today date

2014-04-12 Thread Erick Erickson
You haven't told us under what criteria you would exclude the March document. Do you want only docs that are in the current month? If so, date:[NOW/MONTH TO NOW/MONTH+1MONTH] should do it. Best, Erick On Sat, Apr 12, 2014 at 4:08 PM, Furkan KAMACI wrote: > Hi Darniz; > > Why don't you filter you

Re: OutOfMemoryError while merging large indexes

2014-04-12 Thread Furkan KAMACI
Hi; According to Sun, the error happens "if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection and less than 2% of the heap is recovered, an OutOfMemoryError will be thrown.". Specifying more memory should be helpful. On the other

Re: Delete by query with soft commit

2014-04-12 Thread Furkan KAMACI
Hi Jess; Could you check here first: http://search-lucene.com/m/QTPaSxpsW/Commit+Within+and+%252Fupdate%252Fextract+handler&subj=Re+Commit+Within+and+update+extract+handler and then here: http://searchhub.org/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/ Thanks; Fu

Re: waitForLeaderToSeeDownState when leader is down

2014-04-12 Thread Furkan KAMACI
Hi; There is an explanation as follows: "This is meant to protect the case where you stop a shard or it fails and then the first node to get started back up has stale data - you don't want it to just become the leader. So we wait to see everyone we know about in the shard up to 3 or 5 min by defau

Re: Fetching document by comparing date to today date

2014-04-12 Thread Furkan KAMACI
Hi Darniz; Why don't you filter your documents that has a date until TODAY and then sort them by date and finally get only 1 document with rows=1 ? Thanks; Furkan KAMACI 2014-04-13 0:08 GMT+03:00 Darniz : > Thanks for the quick answer i was able to solve my problem with the > addition > of two

Re: No route to host

2014-04-12 Thread Furkan KAMACI
Hi; Explanation of NoRouteToHostException: Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down. Try to access to that page via Curl o

Re: svn vs GIT

2014-04-12 Thread Furkan KAMACI
Hi Amon; There has been a conversation about it at dev list: http://search-lucene.com/m/PrTmPXyDlv/The+Old+Git+Discussion&subj=Re+The+Old+Git+Discussion On the other hand you do not need to know SVN to use, develop and contribute to Apache Solr project. You can follow the project at GitHub: https:

Re: Search a list of words and returned order

2014-04-12 Thread Furkan KAMACI
Hi; The documents with more words that matched the query will be higher in the result list than those that have fewer words that matched the query. If you want to have documents that have all th equery words in their fields at the top of the results list you can try that: Define a query with a mm

Re: highlighting displays to much

2014-04-12 Thread Furkan KAMACI
Hi; Firstly it is not usual that highlighter cuts up words. When you change the slop size you will realize that highlight size may change. Slop size is how far the fragmenter can stray from the ideal fragment size. A slop of 0.2 means that the fragmenter can go over or under by 20%. Thanks; Furka

Re: Regex For *|* at hl.regex.pattern

2014-04-12 Thread Furkan KAMACI
Hi; I could find a way to achieve it when I debugged the source code. Defining a delimiter and indexing it as an individual token is the first step. Writing a regex that "matches" for given delimiter is the next step. Last step is defining the slop size. When you have a big slop size you get the w

Re: Question regarding solrj

2014-04-12 Thread Furkan KAMACI
Hi; If you had a chance to change the code at client side I would suggest to try that: http://lucene.apache.org/solr/4_2_1/solr-solrj/org/apache/solr/client/solrj/impl/HttpSolrServer.html#setParser(org.apache.solr.client.solrj.ResponseParser) There maybe a problem about character encoding of your

Re: deleting large amount data from solr cloud

2014-04-12 Thread Furkan KAMACI
Hi; Do you get any problems when you index your data? On the other hand deleting as bulks and reducing the size of documents may help you not to hit OOM. Thanks; Furkan KAMACI 2014-04-12 8:22 GMT+03:00 Aman Tandon : > Vinay please share your experience after trying this solution. > > > On Sat,

Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread Furkan KAMACI
Hi; I do not want to change the direction of your question but it is really good, secure and flexible to do such kind of things at your client (a java client or not). On the other *if *you let people to access your Solr instance directly it causes some security issues. Thanks; Furkan KAMACI 20

Re: Strange double-logging with log4j

2014-04-12 Thread Shawn Heisey
On 4/11/2014 3:21 PM, Shawn Heisey wrote: > This is lucene_solr_4_7_2_r1586229, downloaded from the release > manager's staging area. > > I configured the following in my log4j.properties file: > > log4j.rootLogger=WARN, file > log4j.category.org.apache.solr.core.SolrCore=INFO, file > > Now EVER

Re: Fetching document by comparing date to today date

2014-04-12 Thread Darniz
Thanks for the quick answer i was able to solve my problem with the addition of two new fields and if todays date is april14 my query is (liveStartDate:[* TO 2014-04-14T00:00:00Z] AND liveEndDate:[2014-04-14T00:00:00Z TO *]) and its fetches me the correct document guess my initial question doe

Re: Fetching document by comparing date to today date

2014-04-12 Thread Jack Krupansky
Date math lets you add and subtract offsets in various date and time units and truncate to a specified unit as well. For example: q=someDateField:[NOW/DAY TO NOW+1DAY/DAY} Note the use of "}" to exclude the end point of a range. Also, be careful to URL-encode the "+", otherwise URL parsing wi

Fetching document by comparing date to today date

2014-04-12 Thread Darniz
Hello i have come across many threads where people have asked how to fetch doc based on date comparison, my problem is pretty much on the same line. based on todays date i want to fetch documents which are live For example i have three doc below i want to select only one doc based on todays dat

Question regarding solrj

2014-04-12 Thread Prashant Golash
Hi Solr Gurus, I have some doubt related to solrj client. My scenario is like this: - There is a proxy server (Play App) which internally queries solr. - The proxy server is called from client side, which uses Solrj library. The issue is that I can't change client code. I can only chang

Re: stucked with log4j configuration

2014-04-12 Thread Jack Krupansky
Consider the Heliosearch distribution of Solr (HDS) - it comes pre-configured for Tomcat: http://heliosearch.com/heliosearch-distribution-for-solr/ -- Jack Krupansky -Original Message- From: Aman Tandon Sent: Saturday, April 12, 2014 10:16 AM To: solr-user@lucene.apache.org Subject:

Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Yes, I use solrJ , but only to index the data , the querying of the data happens usinf the default select query handler from a non java client. On Sat, Apr 12, 2014 at 12:12 PM, Furkan KAMACI wrote: > Hi; > > Do you use Solrj at your application? Why you did not consider to use to > solve this w

Re: Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread Furkan KAMACI
Hi; Do you use Solrj at your application? Why you did not consider to use to solve this with Solrj? Thanks; Furkan KAMACI 2014-04-12 18:34 GMT+03:00 S.L : > Hello fellow Solr users, > > I am using the default select request handler to search a Solr core , I > also use the eDismaxquery parser.

Apache Solr SpellChecker Integration with the default select request handler

2014-04-12 Thread S.L
Hello fellow Solr users, I am using the default select request handler to search a Solr core , I also use the eDismaxquery parser. 1. I want to integrate this with the spellchecker search component so that if a search request comes in the spellchecker component also gets called and I

Re: stucked with log4j configuration

2014-04-12 Thread Aman Tandon
Haha...Yeah i thought its about 17/18 hours of try to integrate solr with tomcat if you don't know about anything. Thanks for these resources let's see what can happen :D On Sat, Apr 12, 2014 at 7:09 PM, Erick Erickson wrote: > Have you seen: > https://wiki.apache.org/solr/SolrTomcat#Logging >

Re: stucked with log4j configuration

2014-04-12 Thread Erick Erickson
Have you seen: https://wiki.apache.org/solr/SolrTomcat#Logging and http://tomcat.apache.org/tomcat-6.0-doc/logging.html ? Best, Erick P.S. I don't know much about setting up Tomcat, so that's the best I can do... On Sat, Apr 12, 2014 at 6:26 AM, Aman Tandon wrote: > I have upgraded my solr4.2 to

Re: lost in solr new core architecture

2014-04-12 Thread Aman Tandon
Sorry Erick. I will keep that in mind from the next time. On Sat, Apr 12, 2014 at 6:06 PM, Erick Erickson wrote: > Aman: > > Two things: > > 1> Images generally get stripped by the mail server or by receiving > programs, all I see is a little box with "inline image 1" in it. > People often post

stucked with log4j configuration

2014-04-12 Thread Aman Tandon
I have upgraded my solr4.2 to solr 4.7.1 but in my logs there is an error for log4j log4j: Could not find resource Please find the attachment of the screenshot of the error console https://drive.google.com/file/d/0B5GzwVkR3aDzdjE1b2tXazdxcGs/edit?usp=sharing -- With Regards Aman Tandon

Re: Relevance/Rank

2014-04-12 Thread Upayavira
Looks to me that the original query was using the lucene query parser, whereas bq is a parameter of the edismax query parser. This means that the bq param is being ignored. Move the fq clause to the q param, and add ^2000 after the name:123-444 bit. Upayavira On Fri, Apr 11, 2014, at 06:03 PM,

Re: lost in solr new core architecture

2014-04-12 Thread Erick Erickson
Aman: Two things: 1> Images generally get stripped by the mail server or by receiving programs, all I see is a little box with "inline image 1" in it. People often post images somewhere else and provide a link to get around this problem. 2> No big deal, but it's better to start a new post when t

Re: lost in solr new core architecture

2014-04-12 Thread Aman Tandon
Thanks Shawn, it works fine. But there is a problem showing in my tomcat logs related to log4j i have already put the log4j in lib directory of tomcat as well as in WEB-INF\classes\log4j.properties, but still this error is coming in the logs. Also there is no warm up queries showing i am confused.

Re: lost in solr new core architecture

2014-04-12 Thread Shawn Heisey
On 4/12/2014 12:27 AM, Aman Tandon wrote: > HI, > > Currently i am using solr 4.2 with tomcat right now i am stucked because i > don't know how to upgrade to solr 4.7, because the problem for me is that i > am familiar with the cores architecture of solr 4.2 in which we defined the > every core na