solr

Problem with Solr dynamic/copy Field.

hi All I have a problem that i have a dynamic field in schema.xml as <dynamicField name="sec_*" type="text" indexed="true" stored="false"/> and <field name="Contents" type="text" indexed="true" stored="false" multiValued="true"/> dynamic field is copied to Contents field as <copyField source="sec_*" dest="Contents"/> now when i p...

get all results with Dismax , like q=*:* ?

hi all , is not possible to do sthe like q=: with DisMax ? thanks ! ...

Where / How to fit Solr into ASP.net MVC app (using nHibernate / Repository Pattern)

I'm currently in the middle of a reasonably large question / answer based application (kind of like stackoverflow / answerbag.com) We're using SQL (Azure) and nHibernate for data access and MVC for the UI app. So far, the schema is roughly along the lines of the stackoverflow db in the sense that we have a single Post table (contains bo...

find similar documents before add

User fill multi-field form (document) with date, time, title and description. Check, if similar documents are stored in Solr before document saved User can choose, save this document or not. How to implement in Solr "find similar documents"? in Lucene: FuzzyLikeThisQuery, MoreLikeThis? but in Solr? P.S. I use django-hastack ...

Problem adding to solr index from Django using zc.buildout

I'm trying to get Apache Solr running inside my zc.buildout environment. I've defined a simple model: class NewsItem(models.Model): title = models.CharField(blank=False, max_length=255, help_text=u"Title of this news item") slug = models.SlugField(blank=False, help_text=u"Slug will be automatically generated from the title") ...

Fresh solr instance for every hudson test build

I'm building a test suite for a python site, powered by hudson. Currently, the workflow for a test run looks like: Pull down the latest version from the repository. Create a new mysql db and import schema file and some fixture data. Run tests, largely powered by webtest, which means not needing to run a web server. Delete mysql db. ...

Sorl - unicode normalize

Let's say I have document indexed with apache Solr that contains this string - "Klüft skräms inför" I want to be able to find it with search using this keyword "kluft" (note the "u"-"ü") is there a way to do this ? ...

RSolr RequestError Solr Response Severe errors in solr configuration

Hi. I was reindexing my model when I suddenly shutdown my mac, When I try to reindex again using (Model_name).reindex in script/console I encountered an error that I haen't encountered before. RSolr::RequestError: Solr Response: Severe_errors_in_solr_configuration__Check_your_log_files_for_more_detailed_information_on_what_may_be_wrong...

problem by integration of apache nutch (release 1.2) in apach solr (trunk) - got solr exception

hi.. I have configured the solrindex-mapping.xml (nutch) and configured my solr schema.xml and solrconfig.xml too. Both working well on single run, but if I use the bin/nutch solrindex ... I get an exception: org.apache.solr.common.SolrException: Document [null] missing required field: id I have configured the id in all config-files. ...

Search Short Fields Using Solr, Etc. or Use Straight-Forward DB Index

Hello, My website stores several million entities. Visitors search for entities by typing words contained only in the titles. The titles are at most 100 characters long. This is not a case of classic document search, where users search inside large blobs. The fields are very short. Also, the main issue here is performance (and not r...

Ordering results by relevance using Solr search

I'm new to Solr search and trying to get a grasp on how to handle ordering of results. I'm using Ruby on Rails together with the Sunspot gem to interface with Solr. I have an Article model, that has the following fields that are indexed: text Title text AuthorNames integer NumberOfReviews I'd like to be able to perform a search on So...

Ruby on Rails: How are people making search forms on sites with the broken textfield parsing that removes quotation marks?

I'm using Sunspot Solr search, which works fine for the most part for basic search. It's supposed to be able to handle quotation marks around phrases, so that a search for test case will return documents with both test and case, whereas a search for "test case" should return documents with the phrase test case. However, I've been pullin...

Solr/Lucene is it possible to order first by relevance, and then by a second attribute?

In Solr/Lucene is it possible to order first by relevance, and then by a second attribute? As far as I can tell if I set an ordering parameter, it totally overrides relevance, and sorts by the ordering parameter(s). How can I have results sorted first by relevance, and then in the case of two entries with exactly the same relevance, gi...

Our SOLR instance seems to be single-threading and therefore not taking advantage of its multi-proc host

We are running SOLR 1.4.1 (Lucene 2.9.3) on a 2-CPU Linux host, but it seems that only 1 CPU is ever being used. It almost seems like something is single-threading inside the SOLR application. The CPU utilization is very seldom over 0.9 even under load. We are running on virtual Linux hosts and but our other apps in the same cluster a...

SolrNet - Score always 0

I have a simple query to a Solr instance using SolrNet, But for some reason, the score is always 0. I have verified : have a field [SolrField("Score")] public double Score { get; set; } in my mapping class have checked that the fields being searched are string instead of text. What else could be wrong? Please help Update...

SOLR/Lucene index return unique results

I have an index that has multiple entries for the exact same item, i specified a : <uniqueKey>citation</uniqueKey> based on citation, a field that i can use to determine it is unique in the index. I was wondering if there is some way to adjust the query so that it will only return unique results based on that field. or rather to del...

How do to access a solr field from django

Hi, I added a field to my solr schema.xml file. How would I access this field in django. Thanks, David ...

Debugging Solr search queries on Sunspot

How can I debug Solr search queries when using the Sunspot gem on Rails? I have some queries that are returning bizarrely high scores, and I'm trying to get to the bottom of why this is happening. It doesn't seem like any debugging information is exposed to Sunspot, so I think that I need to debug through Solr directly. Fortunately, So...

Solrnet & Clustering

Is it possible to get clustering in Solr querying via SolrNet? using built-in algos. like Carrot2 etc.? Can anyone share some sample code or tips to proceed? ...

Weird query behavior need some help debugging this.

Here is the interresting part of the schema : <fieldType name="text_rev" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> <filt...