solr

Solr/Lucene user click based ranking

I am facing the problem of sort Lucene results based on user click log. I would like that more accessed results comes first. Does anyone knows how to configure or implement such property in Lucene or Solr? Thank you very much. ...

Solr DatImportHandler, multiple resuls of the same type?

Hey guys, some help here would as always be greatly appreciated. I'm indexing data from a db using Solr. Each row in the first table, event_titles, can have more than one start date associated with it, contained in the table event_dates. Data-config is as follows; <entity name="events" query="select id,title_id,name,summary,descripti...

Solr's TikaEntityProcessor not working

I'm trying to get Solr to index a database in which one column is a filename of a PDF document I'd like to index. My configuration looks like this: <dataConfig> <dataSource name="ds-db" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/document_db" user="user" password="password" readOnly="true"/> <dataSource name="ds-file" t...

SOLR and Natural Language Parsing - Can I use it?

hey guys, my requirements are pretty similar to this: Requirements http://stackoverflow.com/questions/90580/word-frequency-algorithm-for-natural-language-processing Using Solr While the answer for that question is excellent, I was wondering if I could make use of all the time I spent getting to know SOLR for my NLP. I thought of SOL...

SOLRNET/SOLR Logging: Need to log specific information on whether a document is added or updated.

Hi guys, I am having a big problem trying to find a logging option for our SOLR integration. Recently I have started using SOLRNET to add documents from the database in batches as previously we were just renewing the entire index every morning. So far this solution is working very well and is exactly what we wanted. However, I am in ...

Solr : how do i index and search several fields?

Hi, I've set up my first 'installation' of Solr, where each index (document) represents a musical work (with properties like number (int), title (string), version (string), composers (string) and keywords (string)). I've set the field 'title' as the default search field. However, what do I do when I would like to do a query on all fiel...

Solr - Proximity Search using phrases

Hi all, I use Solr's proximity search quite often to search for words within a specifeid range of each other, like so "Government Spending" ~2 I was wondering is there a way to perform a proximity search using a phrase and a word or two phrases. Is this possible? If so what is the syntax? Thanks in Advance Ruth ...

Problem indexing files in Solr on Ubuntu

Hi, What I want to do is index some documents in Solr and know how it works. I have installed Solr and Tomcat and can see Solr Admin UI at localhost:8080/ solr/ admin/ Now, I want to add some documents to the index, may I know how to proceed further? I find very less documentation on Internet regarding this. In the tutorial http://lucene...

How to use custom1,custom2,custom3,custom4 in <cfsearch> w/ Solr?

do custom1, custom2, custom3, custom4 attribute of <cfsearch> work with Solr? The documentation said they're only for Verity MATCHES operator. How to use customX with Solr in <cfsearch>? Thanks ...

Lucene based database search engine

Hi All, I am planing to add search feature in my web application. I am using Struts 2 framwork for the application and the items that will be searched are strored in a Relational database. In order to achieve a full text search engine I have following doubts : For database based search engine should I use just lucene or some oth...

apache solr : sum of data resulted from group by

Hi, We have a requirement where we need to group our records by a particular field and take the sum of a corresponding numeric field e.x. select userid, sum(click_count) from user_action group by userid; We are trying to do this using apache solr and found that there were 2 ways of doing this: Using the field collapsing feature (htt...

Sunspot-Solr was started and won't attach to database..

Background: Did a switchamaroo to a cluster server from a solo box. As a result, a few things were overwritten in the transfer. Of them, was that sunspot-solr doesn't read the database anymore. I know of this command $> sunspot-solr start -- -p 8982 -d data/solr/development Which didn't work. If this is the golden command, then poss...

Search for -1 in Solr

Hi! I have an optional property of type pfloat, that can either be an encoded numeric value, or -1 if the property is not set. Numerics are encoded to be range searchable (1 is encoded to something like 10000000001), but -1 will always be -1. How can I search a field for -1? property:-1 throws parse error and property:'-1' doesn't re...

Looking for a TokenFilter

Hi! I am indexing some files written in spanish in Solr, and sometimes appears chars like ¿D é .... I wonder if there is some TokenFilter to avoid this chars when the text has accent (á, é, í, ó...) or letter ñ. Thanks ...

Ideal way of dealing with Solr results in PHP?

Firslty, I'm aware of some similar questions along the lines of this one, but I think this situation is different enough to warrant its own question. I'm running a Solr index, through a jetty install on a LAMP server. I currently use the simplexml_load_file function to bring in the search results and then parse them trough a couple of f...

Match a word with similar words using Solr?

I want to search for threads in my mysql database with Solr. But i want it to not just search the thread words, but for similar words. Eg. if a thread title is "dog for sale" and if the user searches for dogs the title will be in the result. and also if a user searches for "mac os x" the word "snow leopard" will appear. and the abili...

Solr - retrieving facet counts for unfiltered version of query

I'm using Solr for searching, and recently started using faceting to allow users to narrow their search. However, once the user filters by one of the facets, the other filter options are no longer returned in the facet results. This is expected, but not what I'd like. Is there some way to return the facet fields and counts for the unf...

Solr match all aka *:* does not work

Don't know what I did wrong. I have two indices with identical documents in it. The local index was replicated from a master which responds correctly, so the same solrconfig.xml and schema.xml file. But if I query the index on my local machine with *:* I get 0 docs. (other queries on my local machine are working correct) I tried jetty an...

"2d Search" in Solr or how to get the best item of the multivalued field 'items'?

The title is a bit awkward but I couldn't found a better one. My problem is as follows: I have several users stored as documents and I am storing several key-value-pairs or items (which have an id) for each document. Now, if I apply highlighting with hl.snippets=5 I can get the first 5 items. But every user could have several hundreds i...

SOLR date faceting and BC / BCE dates / negative date ranges

Date ranges including BC dates is this possible? I would like to return facets for all years between 11000 BCE (BC) and 9000 BCE (BC) using SOLR. A sample query might be with date ranges converted to ISO 8601: q=*:*&facet.date=myfield_earliestDate&facet.date.end=-92009-01-01T00:00:00&facet.date.gap=%2B1000YEAR&facet.date.other=all&fa...