no match or wrong match results

2011-07-26 Thread deniz
Here is the situation.. when i make search with 3 or more words, the results are corret, however if i make a search by using only one word or two, there is no result, altough there must be... e.g query = stephan ruhl germany munich results are correct, documents with the words above retrieved

Re: Logically equivalent queries but vastly different no of results?

2011-07-26 Thread Ahmet Arslan
Yes - I am using edismax but the reason is not obvious to me can you give me a pointer? Probably this it the be cause. See Hoss' explanation. https://issues.apache.org/jira/browse/SOLR-2649 By the way if you want to boost docs (using lucene queries) with (e)dismax, bq is the way to

Re: SolrJ and class versions

2011-07-26 Thread Martijn v Groningen
Where you upgrading from Solr 1.4? SolrJ uses by default for querying the javabin format (wt parameter). The javabin format is not compatible between 1.4 and 3.1 and above. So If your clients where running with SolrJ 1.4 versions I would expect errors to occur. Martijn On 25 July 2011 12:15,

Removing the unwanted Debug messages - Wire.java

2011-07-26 Thread Sowmya V.B.
Hello All I built a web application in Java/JSP, which calls a Solr Servlet during search process. While I am able to retrieve and display my search results in the format I want, my console is filled with Debug messages, printing all the content of the pages I retrieve. An example Debug line on

changing the root directory where solrCloud stores info inside zookeeper File system

2011-07-26 Thread Yatir Ben Shlomo
Hi! I am using solrCloud with a zookeeper ensamble of 3. I noticed that solcOuld stores information direclt under the root dir in the ZooKeepr file system: \config \live_nodes \ collections In my setup Zookeepr is also used by other modules so I would like solrCLoud to store everything under

Re: How to query solr status

2011-07-26 Thread Péter Király
You can use Luke request handler, but for improving the speed set numTerms parameters to zero, like http://localhost:8983/solr/admin/luke?numTerms=0 It will give you information about optimized state of index as bool name=optimizedtrue/bool More about this on Solr wiki:

proximity within phrases

2011-07-26 Thread Jame Vaalet
How do u write solr query to mention proximity between two phrases dance jockey should appear within 10 words before video jokey (dance jockey) (video jockey)~10 This isn't working fine . can some one suggest a way ? -JAME

Re: proximity within phrases

2011-07-26 Thread Ahmet Arslan
How do u write solr query to mention proximity between two phrases dance jockey should appear within 10 words before video jokey (dance jockey) (video jockey)~10 This isn't working fine . can some one suggest a way ? This is not possible with out-of-the-box solr, though this kind

Re: Solr 3.3: Exception in thread Lucene Merge Thread #1

2011-07-26 Thread mdz-munich
It seems to work now. We simply added /ulimit -v unlimited / to our tomcat-startup-script. @Yonik: Thanks again! Best regards, Sebastian -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-3-3-Exception-in-thread-Lucene-Merge-Thread-1-tp3185248p3200105.html

Re: using distributed search with the suggest component

2011-07-26 Thread mdz-munich
Hi Tobias, try this, it works for us (Solr 3.3): solrconfig.xml: /searchComponent name=suggest class=solr.SpellCheckComponent str name=queryAnalyzerFieldTypeword/str lst name=spellchecker str name=namesuggestion/str str name=classnameorg.apache.solr.spelling.suggest.Suggester/str str

Re: How to make a valid date facet query?

2011-07-26 Thread Tomás Fernández Löbbe
Hi Floyd, I don't think the feature that allows to use multiple gaps for a range facet is committed. See https://issues.apache.org/jira/browse/SOLR-2366 You can achieve a similar functionality by using facet.query. see:

Re: no match or wrong match results

2011-07-26 Thread Tomás Fernández Löbbe
Hi, you are not giving us much information. What's your default operator? What do you mean with results are not correct? On Tue, Jul 26, 2011 at 3:04 AM, deniz denizdurmu...@gmail.com wrote: Here is the situation.. when i make search with 3 or more words, the results are corret, however if i

Re: SolrJ and class versions

2011-07-26 Thread Tarjei Huse
On 07/26/2011 09:26 AM, Martijn v Groningen wrote: Where you upgrading from Solr 1.4? Yep. SolrJ uses by default for querying the javabin format (wt parameter). The javabin format is not compatible between 1.4 and 3.1 and above. So If your clients where running with SolrJ 1.4 versions I would

RE: Spellcheck compounded words

2011-07-26 Thread O. Klein
Using ShingleFilterFactory and PositionFilterFactory I get some results, but never as a useful collation. So I tried to see what results with spellcheck.maxCollations=2 would be, but I never got this to work. not on 3.3 nor 4.0. Even lowering maxCollationEvaluations had no effect. I never get a

Re: SolrJ and class versions

2011-07-26 Thread Martijn v Groningen
I agree! It should be noted in the documentation. I just wanted to say that SolrJ doen't depend on Java serialization, but uses its own serialization: http://lucene.apache.org/solr/api/solrj/org/apache/solr/common/util/JavaBinCodec.html Martijn On 26 July 2011 15:31, Tarjei Huse

Re: Solr vs ElasticSearch

2011-07-26 Thread Peter
Have a look: http://stackoverflow.com/questions/2271600/elasticsearch-sphinx-lucene-solr-xapian-which-fits-for-which-usage http://karussell.wordpress.com/2011/05/12/elasticsearch-vs-solr-lucene/ Regards, Peter. -- View this message in context:

Re: Rounding errors in solr

2011-07-26 Thread Brian Lamb
Is this possible to do? If so, how? On 7/25/11, Brian Lamb brian.l...@journalexperts.com wrote: Yes and that's causing some problems in my application. Is there a way to truncate the 7th decimal place in regards to sorting by the score? On Fri, Jul 22, 2011 at 4:27 PM, Yonik Seeley

RE: Spellcheck compounded words

2011-07-26 Thread Dyer, James
If you're getting OOM's, double-check that you're on 3.3. There was a nasty bug in 3.0 - 3.2 that would cause OOM in conjunction with spellcheck collations in some cases. Ditto if Solr hangs as you might be in a Garbage Collection loop. If you have your jvm running with verbose gc's you'll

Re: Preserve XML hierarchy

2011-07-26 Thread Lucas Miguez
Hi, finally now I have all the field names of each document using the Luke Request Handler (http://wiki.apache.org/solr/LukeRequestHandler) and making HTTP Request to Solr I can get all the fields that contain the word that I am searching. I'll keep looking for a better solution. Thanks! Regards

Cant get Synonym working

2011-07-26 Thread Andy Newby
Hi, I'm coing back to trying to get the Synonynms working (alongside the spellchecker). Here is what I have: fieldType name=spell class=solr.TextField positionIncrementGap=100 analyzer type=index tokenizer class=solr.StandardTokenizerFactory/ filter class=solr.StopFilterFactory

Re: Rounding errors in solr

2011-07-26 Thread Yonik Seeley
On Mon, Jul 25, 2011 at 10:12 AM, Brian Lamb brian.l...@journalexperts.com wrote: Yes and that's causing some problems in my application. Is there a way to truncate the 7th decimal place in regards to sorting by the score? Not built in. With some Java coding, you could create a post filter that

Re: Cant get Synonym working

2011-07-26 Thread Emmanuel Espina
Well it appears to be some issue with the analysis. You can check the http://localhost:8983/solr/admin/analysis.jsp (the admin page of your instance, the analysis section) to see how the analysis is applied and see the end result of aaa You should work with the index and the query analysis

Schema.xml Change...

2011-07-26 Thread Vignesh.v
Dear Team, We tried changing the schema.xml to the user xml format but it shows error.Kindly give me a solution to carry out this process. Thank You. Regards, Vignesh.V

Re: SolrJ and class versions

2011-07-26 Thread Chris Hostetter
: Hi, I recently went through a little hell when I upgraded my Solr : servers to 3.2.0. What I didn't anticipate was that my Java SolrJ : clients depend on the server version. : : I would like to add a note about this in the SolrJ docs: :

Re: Removing the unwanted Debug messages - Wire.java

2011-07-26 Thread Chris Hostetter
: I built a web application in Java/JSP, which calls a Solr Servlet during ... : An example Debug line on my console looks like this: : DEBUG [http-bio-8080-exec-1] (Wire.java:70) - Quick recipe finder[\n] ... : Are there any suggestions on how to work around with this, since the

Re: Schema.xml Change...

2011-07-26 Thread Gora Mohanty
On Tue, Jul 26, 2011 at 3:55 PM, Vignesh.v vignes...@ninestars.in wrote: Dear Team,               We tried changing the schema.xml to the user xml format but it shows error.Kindly give me a solution to carry out this process. [...] Sorry, what does that mean exactly? Please provide details

Re: no match or wrong match results

2011-07-26 Thread Chris Hostetter
: Hi, you are not giving us much information. What's your default operator? : What do you mean with results are not correct? To elaborate, please note... http://wiki.apache.org/solr/UsingMailingLists : : On Tue, Jul 26, 2011 at 3:04 AM, deniz denizdurmu...@gmail.com wrote: : : Here is the

RE: Spellcheck compounded words

2011-07-26 Thread O. Klein
Im using 4.0 for testing this. Im not sure what to expect, but as soon as I increase maxCollationTries to 1 or more, even with maxCollationEvaluations set to low value like 10 it just hangs. With maxCollationTries set to 0 it works just fine. -- View this message in context:

RE: Spellcheck compounded words

2011-07-26 Thread Dyer, James
It sounds like that could be a bug. Could you provide some details on how you're building your dictionary (config snippets), and what parameters you're using to query, etc. ? Your jvm settings and a rough estimate of how big your index is would be helpful too. It would be nice to try and

RE: please help explaining debug output

2011-07-26 Thread Robert Petersen
That didn't help. Seems like another case where I should get matches but don't and this time it is only for some documents. Others with similar content do match just fine. The debug output 'explain other' section for a non-matching document seems to say the term frequency is 0 for my

RE: Spellcheck compounded words

2011-07-26 Thread O. Klein
I will try to duplicate the behavior in 3.3 as I cant get logging to file working in 4.0 like in other releases http://globalgateway.wordpress.com/2010/01/06/configuring-solr-1-4-logging-with-log4j-in-tomcat/ Solr logging (maybe you know how to fix this?) Config is pretty normal I think:

Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang
Hi all, I'm new to solr. I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4. It works fine until I set security manager in glassfish since I don't want to everyone can reach the solr's admin page. The error message was as follows. Severe errors in solr configuration. Check your log

Re: Spellcheck compounded words

2011-07-26 Thread Markus Jelsma
I will try to duplicate the behavior in 3.3 as I cant get logging to file working in 4.0 like in other releases http://globalgateway.wordpress.com/2010/01/06/configuring-solr-1-4-logging- with-log4j-in-tomcat/ Solr logging (maybe you know how to fix this?) You're most likely caught by the

Re: problem with ? wild card searches in solr

2011-07-26 Thread Dmitry Kan
you can use solr analysis tool from the admin page and see how an analysis and querying are done for a specific term. On Sat, Jul 23, 2011 at 1:33 PM, Romi romijain3...@gmail.com wrote: I am using solr for search . i am facing problem with wildcard searches. when i search for dia?mond i get

Re: Severe errors in solr configuration

2011-07-26 Thread Kyle Lee
Could you provide the relevant sections of the logs pertaining to this error? On Tue, Jul 26, 2011 at 12:13 PM, Xue-Feng Yang just4l...@yahoo.com wrote: Hi all, I'm new to solr. I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4. It works fine until I set security manager in glassfish

Re: Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang
Here is the message from server.log [#|2011-07-26T12:17:37.591-0400|SEVERE|glassfish3.1|org.apache.solr.core.CoreContainer|_ThreadID=10;_ThreadName=Thread-1;|java.security.AccessControlException: access denied (javax.management.MBeanServerPermission findMBeanServer)     at

Re: Severe errors in solr configuration

2011-07-26 Thread Andrea Gazzarini
I don't know glassfish; the error you're reporting is a low-level security exception (method access) and doesn't seem to be related with web application (JAAS) security. Did you change the web.xml of solr war for including security constraints, security collections, login-config, roles and so

Re: Severe errors in solr configuration

2011-07-26 Thread Andrea Gazzarini
Sorry, my previous email has been truncated. Setting a security for a web application has nothing to do with security manager, which is something related with jvm and low level permission (Continue from the previous email) But anyway, i don't know glassfish and how its security config is

Re: Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang
No, I don't have any info to setup this for solr with glassfish. If anyone has such a doc for any other application server, such as tomcat, that would be a great help. From: Andrea Gazzarini andrea.gazzar...@atcult.it To: solr-user@lucene.apache.org;

Re: Severe errors in solr configuration

2011-07-26 Thread Chris Hostetter
: Subject: Severe errors in solr configuration : References: 1311383488148-3192748.p...@n3.nabble.com : 8f0d0142ca7ecc4287a9ec1bd8cb880c17c6a26...@uslvdcmbvp01.ingramcontent.com : 201107251713.22614.markus.jel...@openindex.io :

Re: Spellcheck compounded words

2011-07-26 Thread O. Klein
Adding log4j-1.2.16.jar and deleting slf4j-jdk14-1.6.1.jar does not fix logging for 4.0 for me. Anyways, tried it on 3.3 and Solr just hangs here also. No logging, no exceptions. I'll let you know if I manage to find source of problem. -- View this message in context:

Multiple Solr servers and a shared index (again)

2011-07-26 Thread Gaetano Giunta
Hello I've been looking for a definitive answer to the question: is it possible to run Solr on multiple servers with a shared index folder instead of the native master/slave configuration? So far I have found two threads in this ml about the topic:

Re: Spellcheck compounded words

2011-07-26 Thread François Schiettecatte
FWIW, here is the process I follow to create a log4j aware version of the apache solr war file and the corresponding lo4j.properties files. Have fun :) François ## # # Log4J configuration for SOLR # #

Re: Spellcheck compounded words

2011-07-26 Thread O. Klein
François Schiettecatte wrote: # # 4) Copy: # slf4j-1.6.1/slf4j-log4j12-1.6.1.jar - WEB-INF/lib # log4j.properties (this file)- WEB-INF/classes/ (needs to be created) # Don't you mean

slave data files way bigger than master

2011-07-26 Thread Jonathan Rochkind
So I've got Solr 1.4. I've got replication going on. Once a day, before replication, I optimize on master. Then I replicate. I'd expect optimization before replicate would basically replace all files on slave, this is expected. But that means I'd also expect that the index files on slave

Re: Spellcheck compounded words

2011-07-26 Thread François Schiettecatte
I get slf4j-log4j12-1.6.1.jar from http://www.slf4j.org/dist/slf4j-1.6.1.tar.gz, it is what interfaces slf4j to log4j, you will also need to add log4j-1.2.16.jar to WEB-INF/lib. François On Jul 26, 2011, at 3:40 PM, O. Klein wrote: François Schiettecatte wrote: # # 4) Copy: #

Re: Multiple Solr servers and a shared index (again)

2011-07-26 Thread Emmanuel Espina
Regarding point 4, you will have to reload the indexes to preserve consistency among the indexes. When yo perform a commit in solr you have (for an instant) two versions of the index. The commit produces new segments (with new documents, new deletions, etc). After creating these new segments a new

Exact match not the first result returned

2011-07-26 Thread Brian Lamb
Hi all, I am a little confused as to why the scoring is working the way it is: I have a field defined as: field name=myname type=text indexed=true stored=true required=false multivalued=true / And I have several documents where that value is: RECORD 1 arr name=myname strFred/str strFred

Re: Exact match not the first result returned

2011-07-26 Thread Emmanuel Espina
That is caused by the size of the documents. The principle is pretty intuitive if one of your documents is the entire three volumes of The Lord of the Rings, and you search for tree I know that The Lord of the Rings will be in the results, and I haven't memorized the entire text of that book :p It

Solr DataImport with multiple DBs

2011-07-26 Thread spravin
Hi All I am stuck with an issue with delta-import while configuring solr in an environment where multiple databases exist. My schema looks like this: id, name, keyword names exist in one DB and keywords in a table in the other DB (with id as foreign key). For delta import, I would need to check

Re: Preserve XML hierarchy

2011-07-26 Thread Michael Sokolov
Here's an idea: if you index the full text of your XML document using XmlCharFilter - available as a patch (or HtmlCharFilter), and then highlight the entire document (you will need to fiddle with highlighter parameters a bit to make sure you get 1 fragment that covers the entire file) with

Re: SolrJ and class versions

2011-07-26 Thread Michael Sokolov
It's not clear to me (from the wiki, or the jira issue) whether the compatibility break goes both ways - maybe I should just try and see, but just to get this out there on the list: is the 3.X javabin client able to talk to 1.4 servers? If so, then there is a nicely decoupled upgrade path:

Re: SolrJ and class versions

2011-07-26 Thread Shawn Heisey
On 7/26/2011 6:26 PM, Michael Sokolov wrote: It's not clear to me (from the wiki, or the jira issue) whether the compatibility break goes both ways - maybe I should just try and see, but just to get this out there on the list: is the 3.X javabin client able to talk to 1.4 servers? If so, then

how often do you boys restart your tomcat?

2011-07-26 Thread Bing Yu
I find that, if I do not restart the master's tomcat for some days, the load average will keep rising to a high level, solr become slow and unstable, so I add a crontab to restart the tomcat everyday. do you boys restart your tomcat ? and is there any way to avoid restart tomcat?

Re: how often do you boys restart your tomcat?

2011-07-26 Thread Chamnap Chhorn
I often restarted the tomcat service before the memory reaches the os limit. Usually, it eats up only 4 GB, but eventually it eats up 11GB. On Wed, Jul 27, 2011 at 8:42 AM, Bing Yu icedf...@gmail.com wrote: I find that, if I do not restart the master's tomcat for some days, the load average

Re: how often do you boys restart your tomcat?

2011-07-26 Thread Dave Hall
On 27/07/11 11:42, Bing Yu wrote: do you boys restart your tomcat ? and is there any way to avoid restart tomcat? Our female sysadmin takes care of managing our server.

Re: how often do you boys restart your tomcat?

2011-07-26 Thread Bing Yu
I want to let system do the job instead of system adminm, beause I'm lazy ~ ^__^ But I just want a better way to fix the problem. restart server will cause some other problem like I need to rebuild the changes happened during the restart. 2011/7/27 Dave Hall dave.h...@skwashd.com: On 27/07/11

Re: how often do you boys restart your tomcat?

2011-07-26 Thread Shawn Heisey
On 7/26/2011 7:42 PM, Bing Yu wrote: I find that, if I do not restart the master's tomcat for some days, the load average will keep rising to a high level, solr become slow and unstable, so I add a crontab to restart the tomcat everyday. do you boys restart your tomcat ? and is there any way to

Re: How to make a valid date facet query?

2011-07-26 Thread Floyd Wu
Hi Tomás Is facet queries support following queries? facet.query=onlinedate:[NOW/YEAR-3YEARS TO NOW/YEAR+5YEARS] I tried this but returned result was not correct. Am I missing something? Floyd 2011/7/26 Tomás Fernández Löbbe tomasflo...@gmail.com Hi Floyd, I don't think the feature that

Conditional field values in DataImport

2011-07-26 Thread solruser@9913
This may be a trivial question - I am noob :). In the dataimport of a CSV file, am trying to assign a field based on a conditional check on another field. E.g. field name=rawLine regex=CSV-splitting-regex groupNames=X,Y,Z / this works well. However I need to create another field A that

Autocomplete with Solr 3.1

2011-07-26 Thread scorpking
Hi all, when i use autocomplete to suggest like google: http://www.google.com/webhp?complete=1hl=en and follow this url http://solr.pl/en/2010/11/15/solr-and-autocomplete-part-2/ to config my project, but when i tested with more two terms in my query, it's not right, i don't know why? Can anyone