solr

Solr weird search behaviour

Hi, I am having lots of solr document indexed which has field uri = nntp://msnews.microsoft.com/microsoft.public.windows.server.sbs but when i search with query uri:nntp\://msnews.microsoft.com/microsoft.public.windows.server.sbs It returns zero results. The search query works with similar other uri (nntp\://msnews.microsoft.c...

Solr Container

What is better container for SOLR: Tomcat or Jetty ...

Differing Apache Solr results when doing queries through Drupal – why?

I'm trying to create a custom search interface for Apache Solr using Drupal, and I'm having some strange issues with the results. I have the same query yielding 8 hits when I run it from Solr's built-in web interface, and 0 hits when I run it through Drupal. Can anyone explain why? Here's the queries, both taken from the Solr log: So...

How to correctly boost results in Solr Dismax query

I have managed to build an index in Solr which I can search on keyword, produce facets, query facets etc. This is all working great. I have implemented my search using a dismax query so it searches predetermined fields. However, my results are coming back sorted by score which appears to be calculated by keyword relevancy only. I would ...

using OR and NOT in solr query

I'm working on a solr query similar to the following: ((myField:superneat AND myOtherField:somethingElse) OR NOT myField:superneat) When running this, no results are returned. Using criteria on either side of the OR NOT returns results that I'd expect - they are just not working well together. In the case that myField matches supern...

Installing Tomcat + Solr problem

Hi, I'm trying to install Tomcat + Solr on my Ubuntu machine. I was using ubuntu repo: http://packages.ubuntu.com/intrepid/web/solr-tomcat5.5 http://packages.ubuntu.com/intrepid/tomcat5.5 When i launch tomcat, solr do not work: sudo service tomcat5.5 start The webpanel do not find solr, and give me this error: HTTP Status 404 - /...

Faceted query browser for SOLR

Can you recommend a faceted query browser that I can point at a SOLR index? Ideally this would be something that looks like an Endeca-built GUI, where the various facets are extracted from the index, the user clicks on one and is now shown the applicable facets for the remaining items, eventually culminating in a subset of the original ...

Recommended title boost?

I have a relatively simple Lucene index, being served by Solr. The index consists of two major fields, title and body, and a few less-important fields. Most search engines give more relevance to results with matches in the title, over the body. I'm going to start providing an index-time boost to the title field. My question is, what...

How to do a birthday (not birth-date) search in Solr?

I have an index that stores birth-dates, and I would like to search for anybody whose birth-date is within X days of a certain month/day. For example, I'd like to know if anybody's birthday is coming up within a certain number of days, regardless of what year they were born. How would I perform this query this using Solr? (on the "birthd...

DynamicFields in Solr

In my current project i need to index all e-mails and their attachments from multiple mailbox. I will use Solr and I don't know what is the best approach to build my index's structure. My first approach was: <fields> <field name="id" require="true"/> <field name="uid" require="true"/> //A lot of other fields <dynamicField name="attachm...

Debian Lenny Solr Jetty install + running

I want to setup search for my site. I couldn't find much information to install Jetty + Solr on my linode. I could install solr-jetty on ubuntu simply using apt-get. any body has better experience with debian? ...

Using a function in a filter query in Solr

I want to filter my result set before I search. I know the correct way to do this is by using the filter query (fq) parameter. However, I want to filter based on the output of a function performed on a field. I have a field 'rating' which is an integer in the range of 1 to ~75000. The upper limit may change. I want to filter to the top ...

Solr or other choices

I have see SolR working on my PC and I could Index and search better. But I have 360 MB linux virtual machine, I want to run a web site on pylons.. what is the best search engine you can recommend. So far, my linux box is clean from java installation. Is using Solr is overkill for 360 MB linux machine? I could see, I have 160 MB free w...

Efficiently determining if a business is open or not based on store hours

Given a time (eg. currently 4:24pm on Tuesday), I'd like to be able to select all businesses that are currently open out of a set of businesses. I have the open and close times for every business for every day of the week Let's assume a business can open/close only on 00, 15, 30, 45 minute marks of each hour I'm assuming the same sche...

SolrJ Query

Hallo everyone, i have to query multiple values against an index (just like a IN (id1, id2, id3) sql query ) using SolrJ, in other words i want to retrieve docs which field matches with a set of values. As solrj api is rough documented i expect someone could help me Regards ...

Solr fetching date ranges

Well, i'm coding some methods for returning solr docs that mach a interval date range. Docs stored date fields with ISO 8601 format. Any idea? thx ...

Getting SolrQuery full query string

Hi, i'm using Solrj in the dao tier of my application. What i want to know is how can i get the full query string of the request. For example: select?q=*:*&fq=active:true Method SolrQuery.getQuery() only returns the q=XXX part (*:* in my example) Thx ...

Multi-Language Solr Search Index

I am setting up a Solr Search Engine that will index multiple languages. I created a custom UpdateProcessorFactory to figure out which sections of the input text are which language, and then I copy those sections of the document into language specific fields. For example, with this text: "Hello World, Bonjour le Monde, Hallo Welt." I...

Best place for index call when using hibernate

Hi, currently i'm thinking on where's the best place in my code where i must put the call method to my indexing services (solR). The fact is that i must assure that every entity which is stored in the db is indexed, i'm using hibernate and i will try to implement it with interceptors. Any advice | idea ? ...

Solr faceting query syntax

Hi, i want to filter faceting counts on a multi valuated field (no docs) For example: select?q=*:*&rows=5&facet=true&facet.limit=5&facet.field=productID&facet.sort=true is there any chance to filter counts on my facet.field productId ? Given the previous query what i get is: <lst name="facet_counts"> <lst name="facet_queries"/> − ...