solr

determine which value produced a hit in SOLR multivalued field type

If I have a multiValued field type of text, and I put values [cat,dog,green,blue] in it. Is there a way to tell when I execute a query against that field for dog, that it was in the 1st element position for that multiValued field? Assumption: client does not have any pre-knowledge of what the field type of the field being queried is. ...

Search multiple SOLR core's and return one result set

Hi We have several core's setup in SOLR and would like to search across these cores and return a single result set. A bit more background: We have a SOLR core that we index our internal blog engine. We also have a SOLR core that we index our CMS system. We would like to search across both of these cores but view a single result set...

PySolr rss dataimport

Hi, I am using PySolr to run my search. I want to index an rss feed and was wondering if this is possible using PySolr and if so how do you do it. I have found instructions on how to do this in Solr at http://wiki.apache.org/solr/DataImportHandler#HttpDataSource_Example but can't find anything on how to do the equivalent in PySolr...

Why does my unthrottled tomcat/solr performance look like it's being throttled?

I've been working on benchmarking our solr response times in relation to the a variable number of concurrent queries. With maxThreads=150 - I've tried running between 20-100 queries concurrently against our solr instance and have noted that for all n-way (>20) queries I'm finding that performance flatlines at 20-30 requests/second. ...

Sort by date using acts_as_solr

I have gotten sorting working from my rails application using acts_as_solr for text fields, as seen below with Title. I am having problems getting it to work for date. My model has the following class Article < ActiveRecord::Base acts_as_solr :fields[:title, {:title_s=> :string}, {:created_at_d => :date}] def title_s self.title en...

Querying Solr without specifying field names

I'm new to using Solr, and I must be missing something. I didn't touch much in the example schema yet, and I imported some sample data. I also set up LocalSolr, and that seems to be working well. My issue is just with querying Solr in general. I have a document where the "name" field is set to "tom." I keep looking at the config fil...

Missing url field using Solr DataImportHandler

Hi, I'm new to Solr and having difficulties with the DataImportHandler. I get this message when the server starts: Jan 27, 2010 12:27:22 PM org.apache.solr.handler.dataimport.DataImportHandler processConfiguration INFO: Processing configuration from solrconfig.xml: {config=dih-gensigdb-jdbc.xml} Jan 27, 2010 12:27:22 PM org.apache....

How to start Solr automatically?

At the moment I have to go to /usr/java/apache-solr-1.4.0/example and then java -jar start.jar Any ideas how to get this to start automatically on boot? Im on a shared linux server. Cheers ...

Solr non-rootEntity deltaQuery woes

I have a WordPress MU (WPMU) install that I am trying to index in Solr (1.4). The way the database is set up in WPMU is that there is a master blogs table that contains some information about each blog and the primary blog ID. This blog ID is then used to create/access the necessary database tables. ex: Blog ID = 3 -> wp_3_posts Blog I...

SOLR schema design question: field absence or boolean field?

I need to partition my SOLR index into two halves. As it turns out I already have a STRING field which represents the partitioning info I need. Meaning, one kind of record that would be searched for is where the string field is present in the record and contains a value, the other kind is where it contains no value. All queries must s...

Hosted full text search solutions?

Does anyone know of companies offering SaaS full text search? I'm looking for something that uses Lucene, solr, or sphinx on the backend, and provides a REST API for submitting documents to index, and running searches. I could build my own EC2 AMI, but I'd have to configure EBS and other stuff, monitor it, etc. Curious if someone has ...

php quotes sent along with variable help...

I am sending this to a function, and I want double-quotes around the value of the variable below, example $var = "New York" (note the quotes) $fq.=" + area:$state"; So when I echo $state I want double quotes around it, how can I do this? Thanks ...

Adding date boosting to complex SOLR queries

I currently have a SOLR query which uses the query (q), query fields (qf) and phrase fields (pf) to retrieve the results I want. An example is: /solr/select ?q=superbowl &qf=title^3+headline^2+intro+fulltext &pf=title^3+headline^2+intro+fulltext &fl=id,title,ts_modified,score &debugQuery=true The idea is that the title and headline of...

How does one protect a webapp to be accessed only by localhost ?

I am planning to run a java web application and solr in the same java container. I want the web application to be publicly accessible but solr to be accessible only to the other web applications in the same container. Solr should be accessible only as localhost and not from outside. Can we write some rules in the web-xml to achieve this?...

drupal indexing of uploaded documents (pdf, word, etc)

Hi there, is it possible to index uploaded documents in drupal and make them "searchable" via lucene or solr? ...

django / haystack / solr simple config - partial field matching issue

I have a simple config of haystack/solr on my django app: from the models.py of this app: class device(models.Model): ... hostname = models.CharField(max_length=45, help_text="The hostname for this device") ... from the search_sites.py of this app: class devIndex(indexes.SearchIndex): '''Haystack class to allow for i...

Use SOLR on Mysql relational database. Use SOLR for only product table

Hi, I am a bit confused as to where SOLR usage ends and where it begins. I use php with a relational mysql db for a shopping site where all tables are related to the product table joining the tables as theyre queried. Needless to say its too slow! e.g. Category table - catid, catname, catdesc Brand table - brandid, brandname, brand...

Very basic dude with Solr/Lucene

Hello, I am working in a project that has a big amount of data in Lucene. We need to show a faceted search and the time requiered for it is unacceptable when trying to simulate it using regular Lucene accesss. I have been reading about Solr, but tutorials are not very clear about this basic point: Is the data stored in the same way usin...

SORLJ undefined field null

Hello, I am trying to make simple readings over Lucene indexes by using SolrJ. I have been able to access the sample index available in the SolrJ download, but I get an exception when trying to make the reading. 04-feb-2010 17:05:05 org.apache.solr.common.SolrException log GRAVE: org.apache.solr.common.SolrException: undef...

Translate a python dict into a Solr query string

I'm just getting started with Python, and I'm stuck on the syntax that I need to convert a set of request.POST parameters to Solr's query syntax. The use case is a form defined like this: class SearchForm(forms.Form): text = forms.CharField() metadata = forms.CharField() figures = forms.CharField() Upon submission, the f...