solr

Deploying solr in Jboss

I want to deploy the solr.war to jboss server. Please provide me the steps for this. Also after deploying what url i should use to access the solr/data/index directory? Thanks!! ...

How do I setup SOLR to write logs when it is deployed in Tomcat

Hello, I have successfully deployed an instance of SOLR 1.4 into Tomcat6 on a Redhat server. My question is, how do I configure it to log SOLR events? When I was using it previously on Jetty everything was getting logged to jetty/logs. However in Tomcat it doesn't seem to show up anywhere. Any ideas? Thanks! ...

django-haystack more_like_this returns nothing

I've installed the haystack app and I'm using the solr backend. Search works perfectly although when I try to use the more_like_this template tag, nothing is returned. I have added <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" /> to solrconfig.xml and I can make queries at http://127.0.0.1:8080/solr/mlt The template is f...

Solr multiple facet dates.

According to the Apache Solr documentation on facets, I can use keys because: 'This can be helpful when faceting on the same field multiple times with different exclusions.' I need them because I want to have a facet that gives me 'Last day', 'Last week', 'Last month' options. However, when I specify a query with the following options ...

What is the difference between EdgeNGramTokenizerFactory EdgeNGramFilterFactory in SOLR?

What is the difference between these two filters? They seem to have the same effect? Can anyone supply an example of how they are applied to some text? Thanks ...

Solrnet with Web Forms

Hi people, I'm new in SolrNet and Asp.Net also :) please hit me with answer, HOWTO configure SolrNet for web forms. public partial class CreateIndex : System.Web.UI.Page { //http://localhost:8983/solr private static readonly string solrURL = ConfigurationManager.AppSettings["solrUrl"]; protected void Page_Load(obje...

How to generate non-prefix autocomplete suggestions?

I would like to add autocomplete to my tagging functionality. A couple of questions: How do I generate a list of autocomplete suggestions that includes matches in both the prefix and the middle of string? For example, if the user type "auto", the autocomplete suggestions should include terms such as "autocomplete" and "build automat...

Problems with SolrPhpClient Delete function

Hi, I am having some trouble deleting documents from Solr index. I use following code: try{ $solr->deleteById('1'); $solr->commit(); $solr->optimize(); }catch (Exception $e){ echo $e->getMessage(); } This code sometimes succeeds, but most of the time the following exception message is retur...

Solr Incremental backup on real-time system with heavy index

Hi to all! I implement search engine with solr that import minimal 2 million doc per day. User must can search on imported doc ASAP (near real-time). I using 2 dedicated Windows x64 with tomcat 6 (Solr shard mode). every server, index about 120 million doc and about 220 GB (total 500 GB). I want to get backup incremental from solr in...

How to view the XML documents sent to Solr

We're having problems with UTF-8 in Solr, and need to debug the documents that are sent for indexing. Can we do this somehow? Searched all logs I've found, enabled debug="1" in the app XML in the tomcat6 / Catalina directory. Even tried Wireshark, but no dice. Please please! Everything looks good on the PHP side, and this has been work...

Substring matches within SOLR

I can't seem to figure out how to find substring matches with SOLR, I've figured out matches based on a prefix so I can get ham to match hamburger. How would I get a search for 'burger' to match hamburger as well? I tried burger but this tossed an error '*' or '?' not allowed as first character in WildcardQuery. How can I match substr...

In Solr, can I apply a boost to each term in a phrase?

Using Solr, if I have a phrase: "The quick brown fox jumped over the lazy dog." Can I apply my own weighting to these words at index-time? Something like this: "The^1 quick^2 brown^2 fox^3 ..." etc And, then, I'd like to have those numbers influence the score. Thanks! ...

How can I make my 'sunspot-solr start' work ?

Hi guys, I'm have problem to start my sunspot-solr. I'm fallowing instructions from this github/wiki So I made the installation part without trouble apparently. End then I tried to start it with: sunspot-solr start -p 8982 -d solr/data/development -s solr --pid-dir=tmp/pids -l FINE --log-file=log/sunspot-solr-development.log It didn...

How do I update Sunspot-Solr's path after I change my Application Name

Normally my app was located here at : /data/Site/current/ but now it's: /data/Site2/current/ I tried to script/console into it, and reindex, and received the following error which lead me to believe that the new path is throwing it off: RSolr::RequestError: Solr Response: Failed_to_acquire_random_test_lock_please_verify_filesystem_f...

Best practices for configuring a Solr schema

I'm currently configuring my schema.xml file and trying to figure out what's the best way to set up my documents. I use a RMDBS and thus many objects are relational. Take this site for instance; a document typically consists of a question, followed by 0 or more answers. Say you'd want to set up fields for this, you would have to declar...

Solr: fieldNorm different per document, with no document boost

I want my search results to order by score, which they are doing, but the score is being calculated improperly. This is to say, not necessarily improperly, but differently than expected and I'm not sure why. My goal is to remove whatever is changing the score. If I perform a search that matches on two objects (where ObjectA is expecte...

sunspot_rails gem: how could facets be handeld in n:m relation?

hello! does somebody know how i can handle n:m relations with facets in solr with the sunspot_rails gem? i have a model item, which has 4 has_and_belongs_to_many relations. now i ´d like to create a search with facets, where an user can select different parts of this 4 relations and after that search the page.. mattherick ...

query with DATE FIELD AND RANGE query using dismax

I have got a list of resume ID's with the date field and the experience in some range My queries are working with standard query handler but not in dismax. How can I check for the date ranges in between suppose 2009-02-02 to 2010-01-01 using solr's dismax query handler And HOW to configure range queries like minimum experience [3 TO 5...

How to use SOLR in ASP.NET Web application (3.5 Framework)? Please describe best way to do it...

Hi All, I want to use SOLR search platform from the Apache Lucene project in my ASP.NET web application. The basic purpose is to utilise SOLR for search from database for my entity related property. Let me be specific. I have three tables in Database and all of them have 7-10 collumn with thousands of data. E.g Table #1 TBLEmployee ...

how to i do advanced search query using "OR" in solr dismax

how to specify a query like "java with (developer OR programmer)" using solr dismax handler.. It works with solr standard handler but not with dismax ...