Re: solr.xml isn't loaded from classpath?

2011-02-28 Thread Chris Hostetter
: It seems like when "solr home" is absent, Solr makes an attempt to look : a few other places to load its configuration. It will try to look for : solrconfig.xml on the classpath as well. It doesn't seem like it makes : any attempt to find solr.xml though. Why is that? Read below for the

Query on multivalue field

2011-02-28 Thread Scott Yeadon
Hi, I have a variable number of text-based fields associated with each primary record which I wanted to apply a search across. I wanted to avoid the use of dynamic fields if possible or having to create a different document type in the index (as the app is based around the primary record and

Re: multi-core solr, specifying the data directory

2011-02-28 Thread Michael Sokolov
I spent a few hours chasing my tail on this one; I really just assumed that the core's data dir would be under the core's instance dir. But I ended up doing exactly what you did (copying from something I found on the web). seems like a design flaw that could be difficult to fix without breaki

RE: Disabling caching for fq param?

2011-02-28 Thread Jonathan Rochkind
As far as I know there is not, it might be beneficial, but also worth considering: "thousands" of users isn't _that_ many, and if that same clause is always the same per user, then if the same user does a query a second time, it wouldn't hurt to have their user-specific fq in the cache. A singl

Re: Distances in spatial search (Solr 4.0)

2011-02-28 Thread Bill Bell
Use sort with geodist() to sort by distance. Getting the distance returned us documented on the wiki if you are not using score. see reference to _Val_ Bill Bell Sent from mobile On Feb 28, 2011, at 7:54 AM, Alexandre Rocco wrote: > Hi guys, > > We are implementing a separate index on our w

Disabling caching for fq param?

2011-02-28 Thread mrw
Based on what I've read here and what I could find on the web, it seems that each fq clause essentially gets its own results cache. Is that correct? We have a corporate policy of passing the user's Oracle OLS labels into the index in order to be matched against the labels field. I currently sepa

Re: Indexed, but cannot search

2011-02-28 Thread Upayavira
q=dog is equivalent to q=text:dog (where the default search field is defined as text at the bottom of schema.xml). If you want to specify a different field, well, you need to tell it :-) Is that it? Upayavira On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb" wrote: > Hi all, > > I was able to get

multi-core solr, specifying the data directory

2011-02-28 Thread Jonathan Rochkind
Unless I'm doing something wrong, in my experience in multi-core Solr in 1.4.1, you NEED to explicitly provide an absolute path to the 'data' dir. I set up multi-core like this: Now, setting instanceDir like that works for Solr to look for the 'conf' directory in the default location you

Re: Problem with sorting using functions.

2011-02-28 Thread John Sherwood
Fair call. Thanks. On Tue, Mar 1, 2011 at 8:21 AM, Geert-Jan Brits wrote: > sort by functionquery is only available from solr 3.1 (from : > http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function) > > > 2011/2/28 John Sherwood > >> This works: >> /select/?q=*:*&sort=price desc >> >> This thr

suggestion: do not require masterUrl for config

2011-02-28 Thread Jonathan Rochkind
Suggestion, curious what other people think of it, if I should bother filing a JIRA and/or trying to come up with a patch. Currently, when you configure a replication , you HAVE to give it a . SEVERE: org.apache.solr.common.SolrException: 'masterUrl' is required for a slave at org.a

Re: Problem with sorting using functions.

2011-02-28 Thread John Sherwood
Fair call. Thanks. On Tue, Mar 1, 2011 at 8:21 AM, Geert-Jan Brits wrote: > sort by functionquery is only available from solr 3.1 (from : > http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function) > > > 2011/2/28 John Sherwood > > > This works: > > /select/?q=*:*&sort=price desc > > > > Thi

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
Hmm, I'm pretty sure I'm seeing that can take an 'enable' attribute too. Even though that's not a or a , is it? After toggling "enable" back on forth on a listener and restarting Solr and watching my logs closely, I am as confident as I can be that it mysteriously is being respected on . G

Re: Problem with sorting using functions.

2011-02-28 Thread Geert-Jan Brits
sort by functionquery is only available from solr 3.1 (from : http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function) 2011/2/28 John Sherwood > This works: > /select/?q=*:*&sort=price desc > > This throws a 400 error: > /select/?q=*:*&sort=sum(1, 1) desc > > "Missing sort order." > > I'm us

RE: setting different solrconfig.xml for a core

2011-02-28 Thread Dyer, James
Just did a quick search for ' enable=" ' in the 1.4.1 source. Looks like from the example solrconfig.xml, both and tags can take the "enable" attribute. Its only shown with the "ClusteringComponent" so I'm not sure if just any SC or RH will honor it. Also see the unit test "TestPluginEnabl

Re: Problem with Solr and Nutch integration

2011-02-28 Thread Anurag
The above mentioned "requesthandler" lies in schema file or solrconfig file of Solr? I integrated solr and nutch and requesthandler lies in SolrConfig.xml. This is my some content of my solrconfig.xml. As far as Jetty server is concerned its working, don't know about solrtomcat. dismax explici

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
And in other news of other possibilities. If I DID want to use the same solrconfig.xml for both master and slave, but disable the newsearcher/firstsearcher queries on master, it _looks_ like I can use the techique here: http://wiki.apache.org/solr/SolrReplication#enable.2BAC8-disable_master.2B

Sub entities

2011-02-28 Thread Brian Lamb
Hi all, I was able to get my dataimport to work correctly but I'm a little unclear as to how the entity within an entity works in regards to search results. When I do a search for all results, it seems only the outermost responses are returned. For example, I have the following in my db config fil

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
Aha, wait, I think I've made it work, as simple as this in the solr.xml core config, to make a core use a solrconfig.xml file with a different name: ... config="master-solrconfig.xml"> ... Not sure why that didn't work the first half a dozen times I tried. May have had a syntax error in my ma

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
Yeah, I'm actually _not_ trying to get replication to copy over the config files. Instead, I'm assuming the config files are all there, and I'm actually trying to get one of the cores to _use_ a file that actually on disk in that core is called, eg, "solrconfig_slave.xml". This wiki page: htt

Indexed, but cannot search

2011-02-28 Thread Brian Lamb
Hi all, I was able to get my installation of Solr indexed using dataimport. However, I cannot seem to get search working. I can verify that the data is there by going to: http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on This gives me the response: But when I go

Problem with sorting using functions.

2011-02-28 Thread John Sherwood
This works: /select/?q=*:*&sort=price desc This throws a 400 error: /select/?q=*:*&sort=sum(1, 1) desc "Missing sort order." I'm using 1.4.2. I've tried all sorts of different numbers, functions, and fields but nothing seems to change that error. Any ideas?

Re: How to handle special character in filter query

2011-02-28 Thread cyang2010
Thanks you both. In order to get it (e.g. filter query --> http://...&fq:genres=ACTION & ADVENTURE) work in browser, i have to explicitly put url encode for special character, regardless what following solution i use: 1. Using double quote on filter query field 2. Using escape on special char

Re: Problem with Solr and Nutch integration

2011-02-28 Thread Paul Rogers
Hi Anurag Thanks for the prompt reply. I'm following the tutorial at http://www.lucidimagination.com/blog/2009/03/09/nutch-solr/ I have built solr and the example and added it to Tomcat as per http://wiki.apache.org/solr/SolrTomcat and this (solr-example) all appears to work fine (I can acces

RE: setting different solrconfig.xml for a core

2011-02-28 Thread Dyer, James
Jonathan, When I was first setting up replication a couple weeks ago, I had this working, as described here: http://wiki.apache.org/solr/SolrReplication#Replicating_solrconfig.xml I created the slave's "solrconfig.xml" and saved it on the master in the "conf" dir as "solrconfig_slave.xml", the

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
Okay, I did manage to find a clue from the log that it's not working, when it's not working: INFO: Jk running ID=0 time=0/66 config=null config=null, that's not right. When I try to over-ride the config file name in solr.xml core config, I can't seem to put a name in there that works to fin

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
On 2/28/2011 1:09 PM, Ahmet Arslan wrote: (The reason I want to do this is so I can have master and slave in replication have the exact same repo checkout for their conf directory, but have the master using a different solrconfig.xml, one set up to be master.) How about using same solrconfig.xml

please make JSONWriter public

2011-02-28 Thread Paul Libbrecht
Hello fellow SOLR experts, may I ask to make top-level and public the class org.apache.solr.request.JSONWriter inside org.apache.solr.request.JSONResponseWriter I am re-using it to output JSON search result to code that I wish not to change on the client but the current visibility setti

Re: setting different solrconfig.xml for a core

2011-02-28 Thread Ahmet Arslan
> (The reason I want to do this is so I can have master and > slave in replication have the exact same repo checkout for > their conf directory, but have the master using a different > solrconfig.xml, one set up to be master.) How about using same solrconfig.xml for master too? As described here:

Re: Basic Dismax syntax question

2011-02-28 Thread mrw
Fields are str type. The issue happens regardless of case. I just threw in some examples using names to highlight the issue. In the actual index, the data is the affected fields is all LC, and I'm searching in LC. Sounds like the syntax looks okay to you? Thanks iorixxx wrote: > > > --

Re: Tika metadata extracted per supported document format?

2011-02-28 Thread Andreas Kemkes
Chris: Yes, I only see the output below. I'm familiar with the information in http://wiki.apache.org/solr/ExtractingRequestHandler, except for the tika.config part, which I haven't touched. Even when running documents through Tika directly, the output of metadata is highly dependent on what

Re: Basic Dismax syntax question

2011-02-28 Thread mrw
They're all set to LC. I was just coming up with a safe example to post. It sounds like you don't see an issue with the syntax we're using? Thanks tjpoe wrote: > > i noticed that your search terms are using caps vs lower case, are your > search fields perhaps not set to lowercase the terms

Re: Solr Payloads retrieval

2011-02-28 Thread Sujit Pal
Yes, check out the field type "payloads" in the schema.xml file. If you set up one or more of your fields as type payloads (you would use the DelimitedPayloadTokenFilterFactory during indexing in your analyzer chain), you can then use the PayloadTermQuery to query it with, scoring can be done with

Re: Basic Dismax syntax question

2011-02-28 Thread Ahmet Arslan
--- On Mon, 2/28/11, mrw wrote: > From: mrw > Subject: Basic Dismax syntax question > To: solr-user@lucene.apache.org > Date: Monday, February 28, 2011, 7:41 PM > Say I have an index with first_name > and last_name fields, and also a copy > field for the full name called full_name.  Say I add >

Search Result from Multiple Cores

2011-02-28 Thread pankaj bhatt
Hi All, Can anyone please help me in getting the results from multiple cores ( all cores maintain there separate indexes, no sharding). Suppose I had three cores: - Core A ( SQL Server DB), Core B ( FileSystem), Core C (MySQL) if i search for word "Java" then the combined results from all

setting different solrconfig.xml for a core

2011-02-28 Thread Jonathan Rochkind
So I think I ought to be able to set up a particular solr core to use a different file for solrconfig.xml. (The reason I want to do this is so I can have master and slave in replication have the exact same repo checkout for their conf directory, but have the master using a different solrconfig

Re: Problems with JSP pages?

2011-02-28 Thread Chris Hostetter
: I'm on Windows Vista, using the trunk. Some of the JSP pages do not : execute, but instead Jetty downloads them. : : solr/admin/get-properties.jsp for example. This is called by the 'JAVA : PROPERTIES' button in the main admin page. : : Is this a known problem/quirk for Windows? Or fallout fro

Solr Payloads retrieval

2011-02-28 Thread Fabiano Nunes
Hi! I'm studying a migration from "pure" Lucene to Solr, but I need a crucial feature: Is it posible to retrieve payloads from Solr? I'm storing the coordinates from each term in its payload to highlight images in client-side. Thank you,

Re: Basic Dismax syntax question

2011-02-28 Thread Tanner Postert
i noticed that your search terms are using caps vs lower case, are your search fields perhaps not set to lowercase the terms and/or the search term? On Mon, Feb 28, 2011 at 10:41 AM, mrw wrote: > Say I have an index with first_name and last_name fields, and also a copy > field for the full name

Basic Dismax syntax question

2011-02-28 Thread mrw
Say I have an index with first_name and last_name fields, and also a copy field for the full name called full_name. Say I add two employees: Napoleon Bonaparte and Napoleon Dynamite. If I search for just the first or last name, or both names, with mm=1, I get the expected results: q=Napoleon&def

Re: Understanding multi-field queries with q and fq

2011-02-28 Thread mrw
Hi, Otis. I have been playing with dismax (defType=dismax, not qt=dismax -- not sure about the difference). It looks like eDismax won't be available until Solr 3.1, correct? We actually have to pass hundreds of Oracle OLS labels in each request for each user (e.g., Loan Officer can see her custom

Distances in spatial search (Solr 4.0)

2011-02-28 Thread Alexandre Rocco
Hi guys, We are implementing a separate index on our website, that will be dedicated to spatial search. I've downloaded a build of Solr 4.0 to try the spatial features and got the geodist working really fast. We now have 2 other features that will be needed on this project: 1. Returning the dista

Re: Create a tomcat service.

2011-02-28 Thread Savvas-Andreas Moysidis
..--DisplayName doesn't *have* to be {TOMCAT_HOME} of course..just a copy paste artifact.. :D On 28 February 2011 12:21, Savvas-Andreas Moysidis < savvas.andreas.moysi...@googlemail.com> wrote: > Hi Rajini, > > We use the following script ran from within {TOMCAT_HOME}\bin directory to > create se

Re: Create a tomcat service.

2011-02-28 Thread Savvas-Andreas Moysidis
Hi Rajini, We use the following script ran from within {TOMCAT_HOME}\bin directory to create service instances (assuming you are targeting Windows Server environments..): cd "C:\Program Files\Apache Software Foundation\{TOMCAT_HOME}\bin" set CATALINA_BASE="C:\Program Files\Apache Software Founda

Re: Create a tomcat service.

2011-02-28 Thread Jan Høydahl
You may have downloaded the wrong Tomcat package? http://lmgtfy.com/?q=tomcat+windows+service On 28. feb. 2011, at 12.25, rajini maski wrote: > Does anybody have a script to create a tomcat service? I'm trying > to set my system up to run multiple instances of tomcat at the same time (o

MorelikeThis not working with Shards(distributed Search)

2011-02-28 Thread Isha Garg
Hi, I am experimenting with the *morelikethis* to see if it also works with *distributed* search.But i did not get the solution yet.Can anyone help me regarding this. please provide me detailed description. as I didnt find it by updating MoreLikeThisComponent.java,MoreLikeThisHandler.jav

Re: Problem with Solr and Nutch integration

2011-02-28 Thread Anurag
Solr uses jetty server default, do u know that? you can run solr server without using Tomcat (using jetty server). Please describe the steps that led to the error. Which command u executed? On Mon, Feb 28, 2011 at 1:39 AM, Paul Rogers [via Lucene] < ml-node+2590334-620834624-146...@n3.nabble.com>

Re: Getting sum of all terms count in dataset instead of document count using TermsComponent....(and TermsComponent vs Facets)

2011-02-28 Thread Ahmet Arslan
> from head, but also tried on > > 1.4.1. > > > The instructions i posted works with 1.4.1. You need to > import TermDocs in TermsComponent.java : > > import org.apache.lucene.index.TermDocs; Ravish, did you get it working? Can you give us feedback?

Re: Solr Multicore - cant seem to get it working?

2011-02-28 Thread Ahmet Arslan
> I'm waiting on my > host to add my IP to the > firewall for me, so I can test that part of it (they setup > the bog standard > Solr for me, but I'm now trying to get it working with the > multicore, as I > think we are gonna need several Solr instances for > different parts of the If you have m

Create a tomcat service.

2011-02-28 Thread rajini maski
Does anybody have a script to create a tomcat service? I'm trying to set my system up to run multiple instances of tomcat at the same time (on different ports, obviously), and can't get the service to create properly.I tried to follow the steps mentioned in this link

Re: Solr Multicore - cant seem to get it working?

2011-02-28 Thread ultranerds
Hi, I already did answer that one =) I'm waiting on my host to add my IP to the firewall for me, so I can test that part of it (they setup the bog standard Solr for me, but I'm now trying to get it working with the multicore, as I think we are gonna need several Solr instances for different parts

Re: Solr Multicore - cant seem to get it working?

2011-02-28 Thread Stefan Matheis
Andy, try to answer the question other guys asked you .. and not just write something. On Sun, Feb 27, 2011 at 4:16 PM, Ahmet Arslan wrote: > Can you see 'Admin graphics' listed in http://localhost:210/solr/ page? Regards Stefan On Mon, Feb 28, 2011 at 8:57 AM, ultranerds wrote: > Hi, > > Tha

Re: Question about Nested Span Near Query

2011-02-28 Thread Ahsan |qbal
Hi Bill Any update.. On Thu, Feb 24, 2011 at 8:58 PM, Ahsan |qbal wrote: > Hi > > schema and document are attached. > > > On Thu, Feb 24, 2011 at 8:24 PM, Bill Bell wrote: > >> Send schema and document in XML format and I'll look at it >> >> Bill Bell >> Sent from mobile >> >> >> On Feb 24, 201

Re: Problem with Solr and Nutch integration

2011-02-28 Thread Paul Rogers
Hi Anurag Sorry for missing that key piece of info out. I'm running Linux (Centos 5.5). Regards Paul On 28 February 2011 07:26, Anurag wrote: > Which os u are using? >

Re: Solr Multicore - cant seem to get it working?

2011-02-28 Thread ultranerds
Hi, Thanks for the reply. I sure did. I did a bit more research, and found out that java was still running, so I run: sudo /etc/init.d/solr stop ...then: killall java (just to make sure it was all closed) ...and finally: sudo /etc/init.d/solr start Yet I'm still getting the error about the