Все вопросы: [solr]

94 вопросов

0
голосов
2ответов
539 просмотров

Index-time boosting using DIH with JdbcDataSource

Is it possible to add boosts to docs and fields in Solr 1.4 DIH when using a JdbcDataSource? The documentation seem to suggest it's possible but I can't find any examples. There are a few examples of how to add the boost="2.0" attribute to your docs/fields in XML imports, but how do you do the s...

4
голосов
2ответов
2395 просмотров

Retrieving per keyword/field match position in Lucene Solr -- possible?

Is there any way to retrieve the match field/position for each keyword for each matching document from solr? For example, if the document has title "Retrieving per keyword/field match position in Lucene Solr -- possible?" and the query is "solr keyword", I'd like to get, in addition to the doc-i...

16
голосов
2ответов
7456 просмотров

Solr DIH -- How to handle deleted documents?

I'm playing around with a Solr-powered search for my webapp, and I figured it'd be best to use the DataImportHandler to handle syncing with the app via the database. I like the elegance of just checking the last_updated_date field. Good stuff. However, I don't know how to handle deleting docum...

1
голосов
1ответов
1319 просмотров

GWT interface to Solr index

I have a solr index on a remote server and need to create a search page interface. I am using GWT to code the pages and XML-HTTP to query the index and receive the response. The problem is the same-site origin security policy. It won't let JavaScript retrieve the remote XML data. Is there a worka...

6
голосов
1ответов
3996 просмотров

how to reduce solr memory usage?

I use solr in my application, there is just hundreds of documents. the memory usage is about 80M, how to reduce it?

4
голосов
1ответов
4919 просмотров

How do I search set of keywords from keywords field in Solr?

So I have a keyword field with this schema Indexed, Tokenized, Multivalued, TermVector Stored, Omit Norms then I wanna search set of keywords against it like q=keyword:keyword1, keyword2, keyword3, etc, etc and want to return most matching keywords, even 1 match keyword is fine, but ordered by...

2
голосов
5ответов
806 просмотров

Why should (or shouldn't) a Search Query return back only document IDs?

So for a new project, I'm building a system for an ecommerce site. The idea is to import products from suppliers and instead of inserting them directly into our catalog, we would store all the information in a staging area. Each supplier has their own stage (i.e. table in the database), and then ...

8
голосов
2ответов
11758 просмотров

SOLR - Boost function (bf) to increase score of documents whose date is closest to NOW

I have a solr instance containing documents which have a 'startTime' field ranging from last month to a year from now. I'd like to add a boost query/function to boost the scores of documents whose startTime field is close to the current time. So far I have seen a lot of examples which use rord ...

0
голосов
2ответов
656 просмотров

Parsing PHP array which has an abject inside

I've got a response form the solr query in php. below is the response form apache solr in drupal6, i need to access the id field inside the Apache_Solr_Document, can some bosy help me with this. i was able to print this using print_r($result); Array ( [type] => Bookmarks [node] => Apache...

2
голосов
2ответов
1628 просмотров

how to index cck field of type text area in solr: drupal6

I've created a cck filed of type textarea with name filed_desc, how do i get this field to index in solr. i found this article http://acquia.com/blog/understanding-apachesolr-cck-api, i have tried this but it is not indexing the filed, can somebody help. <?php // $Id$ /** * Implementati...

0
голосов
2ответов
298 просмотров

SOLR choose index at search

I posted this in the Nabble group also, but figured may get some advice here. is there a way to get SOLR to search whatever index i tell it to during search time without using multiple cores? i dont build my indexes with SOLR, i build them with my own java class, but i do use SOLR to search the...

1
голосов
2ответов
2507 просмотров

Classpath for custom Solr Transformer

I have written a custom Transformer subclass for the Solr DataImportHandler. It is in a jar file, but I can't figure out how to get solr to find it. java.lang.NoClassDefFoundError: org/apache/solr/handler/dataimport/Transformer I've configured the data-config.xml file with the full path t...

3
голосов
1ответов
5603 просмотров

Solr - Error when posting an "Add" to the server

I'm Posting the following to the Solr Server: <add> <doc> <field name="uniqueid">5453543</field> <field name="modifieddate">2008-12-03T15:49:00Z</field> <field name="title">My Record</field> <field name="descr...

1
голосов
1ответов
536 просмотров

solr translating plurals to singular, do not want it to

i have a field where there are items that are plurals, and used as very specific locators, so i do a solr search type:articles, and it translates it into : <str name="rawquerystring">type:articles type:articles type:articl it gets really frustrating, is there a way i can disable this?

52
голосов
6ответов
25174 просмотров

Search Engine - Lucene or Solr

We need to integrate a search engine in our Product Catalog management software. the catalog is expected to have more than 4-5 mn. records with relational data spread over several tables. Our dev platform is Asp.Net 3.5 and we have done some pre-liminary work on Lucene, found it to be good. Howev...

1
голосов
2ответов
662 просмотров

Searcing for a list of keywords to find out which ones exist or not

I have a large document with various sections. Each section has a list of keywords /phrases of interest. I have a master list of keywords/phrases stored as a String array. How can I use Solr or Lucene to search each section document for all keywords and basically give me which keywords were foun...

3
голосов
1ответов
1200 просмотров

Lucene search results sort by custom order list (unique to each user)

I have authenticated users in my application who have access to a shared database of up to 500,000 items. Each of the users has their own public facing web site and needs the ability to prioritize the items on display (think upvote) on their own site. out of the 500,000 items they may only have ...

33
голосов
2ответов
17965 просмотров

Searching for date range or null/no field in Solr

I want to perform a search on a text field in Solr. I want to return all matches in a range or where there is no value. The two searches word independently: myfield:[start TO finish] -myfield:[* TO *] The first returns all matches in the range. The second returns all matches that have no va...

0
голосов
2ответов
1143 просмотров

Solr search is ignoring a date filter

In the solr admin (www.example.com:8065/solr/admin/file/?file=schema.xml, my schema.xml looks like: <field name="unique_id" type="string" indexed="true" stored="true" required="true"/> <field name="collapse" type="string" indexed="true" stored="true"/> <field name="roles" type="st...

0
голосов
3ответов
3621 просмотров

Can I restrict the search to a specific date range?

I want to get all results AFTER a given date, can you do this with solr? (http://lucene.apache.org/solr/) Right now the results are search the entire result set, I want to filter for anything after a given date. Update This isn't working for me yet. My returned doc: trying: http://www.examp...

-1
голосов
1ответов
303 просмотров

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.

1
голосов
4ответов
694 просмотров

how to get all docs with acts_as_solr

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> It...

9
голосов
2ответов
16317 просмотров

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 i...

0
голосов
1ответов
1821 просмотров

solr DIH - A problem about solr delta-imports

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 i...

3
голосов
1ответов
6592 просмотров

How to retrieve "facet_queries" data with SolrJ

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

0
голосов
2ответов
1440 просмотров

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" stor...

192
голосов
5ответов
55343 просмотров

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;...

0
голосов
1ответов
2114 просмотров

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 foun...

3
голосов
2ответов
3004 просмотров

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 tha...

1
голосов
1ответов
566 просмотров

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...