solr

Ranking using Geographic Location in Solr

What is the correct way to implement a custom ranking algorithm for Solr/Lucene? I read about Zvents implementing a Distance Weighting ranking system for documents which correspond to events in a specific geographic area (http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Zvents). I would like to do something simi...

How to set solr.home in Glassfish with centOS?

Hi all: I want use glassfish as the solr search server, but I don't know how to set the solr.home in glassfish with centOS . I tried to set solr.home, but it didn't work. The error was: " looking for solr.xml: /var/deploy/solr/solr.xml " Anybody knows? [email protected] Thanks! ...

Semantic analysis using Solr

I'm considering about adding semantic analysis to my Solr installation, but I don't exactly know where to start. Basically, I'd like Solr to be able to find "similar" words (taken from the body of the indexed documents). For example, if I search for "music", I should be able to query the semantic engine and obtain "rock", "pop", etc. (o...

Python memory footprint vs. heap size

I'm having some memory issues while using a python script to issue a large solr query. I'm using the solrpy library to interface with the solr server. The query returns approximately 80,000 records. Immediately after issuing the query the python memory footprint as viewed through top balloons to ~190MB. PID USER PR NI VIRT R...

HTTP Status 500 - java.lang.RuntimeException: Can't find resource 'solrconfig.xml'

Hi all, I used ubuntu 8.10 as the solr server OS, and set the solr.solr.home=home/huenzhao/search/tomcat6/bin/solr. When I run the tomcat(The tomcat and the solr that I used running on windows XP has no problem), there has error as : HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed informat...

Is Tomcat middleware?

So I have a client that needs to be running tomcat for various things (Solr and a webservice as well) and after having a meeting with him and another programmer on the project, I got a little confused. The other programmer was throwing around buzzwords and saying things like "We need to have middleware for tomcat." In response to this, m...

Installing Solr onto a hosted tomcat server.

I have installed and configured tomcat+solr on my personal linux machine and windows as well. I was able to get them working fine. I'm very new to Java and how the file structure works. (i.e. knowing where to put war files and what WEB-INF is) So now that I am ready to install solr and configure it on my clients shared hosting plan, the ...

How to limit only a POST with IP address inJetty which Solr riding

I think about the use of Solr. Only a POST limits a thing moving in Jetty in an IP address and wants to use it. How to limit only a POST of Jetty which Solr appears in IP address ...

How to set solr/home in linux OS?

Hi all, I know how to configure solr.home by using tomcat6, but I don't know how to set solr.home by using Glassfish(V2.1). I have tried to set the solr.home in .profile as fellows: export solr.home=/home/huenzhao/search/solr export solr/home=/home/huenzhao/search/solr export solr.solr.home=/home/huenzhao/search/solr export JAVA_OPT...

Solr conditional adds/updates?

I have a fairly simple need to do a conditional update in Solr, which is easily accomplished in MySQL. For example, I have 100 documents with a unique field called <id> I am POSTing 10 documents, some of which may be duplicate <id>s, in which case Solr would update the existing records with the same <id>s I have a field called <dateCr...

Which server parameters to tweak in Solr if I expect heavy writes and light reads?

I am facing scalability issues designing a new Solr cluster and I need to master to be able to handle a relatively high rate of updates with almost no reads - they can be done via slaves. My existing Solr instance is occupying a huge amount of RAM, in fact it started swapping at only 4.5mil docs. I am interested in making the footprint ...

Why can't solr 1.3.0 install using CentOS, plesk 9.2.1 and tomcat 5.5?

Ok I just setup a dedicated server for my client through his hosting provider. They have plesk installed on there (version 9.2.1) and one of the caveats of this dedicated server is that if i do anything OUTSIDE of the control panel (i.e. use SSH) for any task they do not guarantee support for that software component. That's fine because ...

How do you set JAVA_OPTS for a service based version of tomcat using plesk on linux?

I have installed a servlet (solr) that requires that I set the variable solr.solr.home equal to solr home. Something like: JAVA_OPTS=-D=solr.solr.home='/usr/share/tomcat/solr' The version of tomcat I am using is running as a service setup through plesk control panel. After googling this I found a page that said I should edit the web.x...

Choosing a stand-alone full-text search server: Sphinx or SOLR?

I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can serve search requests from multiple clients Must be able to do "bulk indexing" by indexing the result of an SQL query: say "SELECT id, text_to_index FROM documents;" Must be free software and must run on Li...

Why can't I query SolrJ for a URL?

I have a Solr schema that has a "url" field: <fieldType name="url" class="solr.TextField" positionIncrementGap="100"> </fieldType> <fields> <field name="id" type="string" stored="true" indexed="true"/> <field name="url" type="url" stored="true" indexed="false"/> <field name="chunkNum" type="long...

How to retrive "facet_queries" data with SolrJ

I did not find any way to do that. Is it possible? Thanks ...

solr DIH - A problem about solr delta-imports

Hi all, There is a problem when I use solr1.3 delta-imports to update the index. I have added the "last_modified" column in the table. After I use the "full-import" command to index the database data, the "dataimport.properties" file contains nothing, and when I use the "delta-import" command to update index, the solr list all the data...

How to use n-grams approximate matching with Solr?

We have a database of movies and series, and as the data comes from many sources of varying reliability, we'd like to be able to do fuzzy string matching on the titles of episodes. We are using Solr for search in our application, but the default matching mechanisms operate on word levels, which is not good enough for short strings, like ...

how to get all docs with acts_as_solr

Hi, I'm doing something like this: Item.find_by_solr('name:ab*') and it says it returns 297 results: => #<ActsAsSolr::SearchResults:0xb6516858 @total_pages=1, @solr_data={:docs=>[doc1, doc2, doc3...]}, :max_score=>1.6935261, :total_pages=>1, :total=>297}, @current_page=1> Item.count_by_solr('name:ab*') also returns 297. Yet when ...

Reason to change the xml files in solr

For the installation of apache solr integration module in Drupal we need to install solr. The must do thing is we need to change the solr schema.xml and configure.xml files with the files in apache solr integration module. can any body explain the reason behind this change. ...