solr

solr index subdirectory

Hello, I have just started using SOLR. I have configured the data directory in the solrconfig.xml. However, I've noticed that a subdirectory called index is always created in the end. Is there any way to avoid it? ...

HTTP ERROR: 404 missing core name in path with solr

Hi, I am new to Solr, After installing solr in ubuntu 8.10 ,when i was trying exampledocs to index ,as per this link http://geekblog.vodpod.com/2009/03/09/using-solr-lucene-for-search-with-ruby-on-rails/ i got this error "HTTP ERROR: 404 missing core name in path"(in jetty) what shall i do, inorder to solve this? pls help me. Thanks...

Django haystack doesn't add to Solr index. [Works with whoosh, fails with Solr]

During development I used whoosh as a backend, and now want to switch to solr. I installed solr, changed the settings, to HAYSTACK_SEARCH_ENGINE, and HAYSTACK_SOLR_URL. Now when I try to update or rebuild the index it fails with Failed to add documents to Solr: [Reason: None] . All searches are also wrong with 0 results returned for ...

Problem with faceted search

Hi there! I’m doing some faceted searches but have a few problems. I don’t get the desired results when there are several words in the faceted search field. Example: “animal” field with the following entries: A horse Black horse Black horse La faceted search sends back "horse(3)" as best result, whereas I wo...

Display results from solr with JSP

Hi, I am trying to work out the best way to display solr results in JSP. I am a bit new to JSP but it seems as if there are a whole bunch of ways of doing it e.g. Hibernate, Spring MVC, JSP page itself, struts. It would be great to find out if anyone has any experience with consuming Solr or XML and which of the above solutions is th...

ToTitleCase in solr to stop SCREAMING CAPS in Solr

Hi, I'm using solr's faceting and i've run into a problem that i was hoping i could get around using filters. Basically some times a town name will come through to SOLR as "CAMBRIDGE" and sometime's it will come through as "Cambridge" I wanted to use a filter in Solr to stop the SCREAMING CAPS version of the town name. It seems th...

In Solr, How to query against one field for distinct set of values in a multi-valued field

I basically want Solr to search each record of the multivalued field for my search parameter.. read on for my example: I am using Solr to index my data. I have application data in parallel arrays (in the form of multi-valued fields) that match a given product. See the following example, where make, model, and year are multivalued fields...

Lucene search where a field MUST start with certain letters

I'm trying to search for results within a range e.g. A TO C. However the results are coming in with results that contain letters within the range but I only want results that START with letters within the range. ...

In Solr, How to search for blank facets in a multi valued facet field and at the same time, simply returning proper matches

I have an application where users can pick car parts. They pick their vehicle and then pick vehicle attributes as facets. After they select their vehicle, they can pick facets like engine size, for example, to narrow down the list of results. The problem was, not all documents have an engine size (it's an empty value in Solr), as it does...

Cant access solr XML url from apache php

Hi, I am trying to use apache to access a XML from tomcat url like so: http://localhost:8081/solr-example/select/?q=blah&version=2.2&start=0&rows=10&indent=on However, I am getting a permission denied error. I have tried chown, chmod and chcon on both the tomcat and solr directories and it still gives me the error. I a...

int (id) or text based hierarchies?

I have a question on best practice for relational databases and hierarchies. My question is, is it more sane to use text or int (id) based hierarchies? I have a hierarchy, but it is not an id based one. The hierarchy is based on text e.g. 'level1', 'level2' as opposed to id1, id2 I use mysql and also solr for managing my data. At the ...

Changes needed to schema.xml and solrconfig.xml

I'm adding a few fields using solrj. What changes need i make in the solrconfig.xml and schema.xml? I'm new to solr and i'd love some help ...

Which is the best open source search engine

Which is the best open source search engine ..to process more than 5 billion of datas.. 1) NUtch 2) Solr ...

ElasticSearch, Sphinx, Lucene, Solr, Xapian. Which fits for which usage ?

I'm currently looking at other search methods rather than having a huge SQL query. I saw elasticsearch recently and played with woosh (a python implementation of a search engine). Can you argument your choices on why you chose or will choose any of those project ? ...

SOLR multicore shared configuration

I'm using multiple cores in SOLR to enable offline population of indices (and then using SWAP to swap out the active core). I want to use the same solrconfig.xml file for both cores - can someone tell me where I should put this so it can be picked up by SOLR? ...

Remote stream multiple files in SOLR

I want to use SOLR's remote-streaming facility to extract and index the content of files. This works fine if I pass stream.file=xxx as a parameter to the http GET method. However, I have a lot of these, and want to batch them up (i.e. not have to have a GET per file). Is there a way I can do this in SOLR? e.g. I'd like to be able to ...

solr example demo, cant work out where to put java folder

Hi, Ive followed this tutorial to install (multiple) solr instances on tomcat http://wiki.apache.org/solr/SolrTomcat Now i want to set up this demo but its not working http://www.ibm.com/developerworks/java/library/j-solr1/ Ive built the dw.war as mentioned in the demo and now I get this error. java.lang.NoClassDefFoundError: Could...

Is there a C++ SOLR library?

Hi, I have a Solr box which is fed by a PHP cronjob right now. I want to speed things up and save some memory by switching to a C++ process. I don't want to reinvent the wheel by creating a new library. The only thing is I can't find a library for Solr in C++. Otherwise I will have to create one using CURL probably. Does any of ...

Building Solr indexes through Haystack throws unknown field error

I'm trying to integrate Haystack with Solr. When I try to build the index, I get an error "Unknown field django_id" from SOLR. What's causing this to happen? ...

HTTP ERROR: 500 Severe errors in solr configuration.

hi i am trying to import data from mysql following this link http://www.cabotsolutions.com/blog/200905/using-solr-lucene-for-full-text-search-with-mysql/ I am getting the following error.. HTTP ERROR: 500 Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to c...