apachesolr

ubercart search - products aren't indexed

Our shopping website is based on drupal's ubercart. I have setup ApacheSolr and ApacheSolr Ubercart integration modules. I have created a few products on my website, but am unable to get these products indexed. The default ApacheSolr module works, i.e., I am able to index drupal's default stories. But am unable to achieve indexing for ...

Solr for constantly updating index

I have a news site with 150,000 news articles. About 250 new articles are added daily to the database at an interval of 5-15 minutes. I understand that Solr is optimized for millions of records and my 150K won't be a problem for it. But I am worried the frequent updation will be a problem, since the cache gets invalidated with every upda...

Apache Solr - are the documents itself stored internally apart from the index?

Hello, I have been trying to research how solr works when documents like doc or pdf are submitted to it. I want to know if I submit pdfs to solr, does it end up storing the pdf file also along with the index generated after parsing the pdf file? Thanks, -Keshav ...

Architecture with 3 servers for solr search engine

I'm going to build a search engine on solr, and nutch as a crawler. I have to index about 13mln documents. I have 3 servers for this job: 4 core Xeon 3Ghz, 20Gb ram, 1.5Tb sata 2*4 core Xeon 3Ghz, 16Gb ram, 500Gb ide 2*4 core Xeon 3Ghz, 16Gb ram, 500Gb ide One of the servers I can use as a master for crawling and indexing, other twos...

How to set different facet limits for different facet fields for Solr query using apache solrQuery API?

The documentation of solr for facet.limit says that facet limit can be set of per field basis. The setFacetLimit() method present in SolrQuery API gets applied for all the fields that are faceted. Following is the piece of code through which I was trying to achieve different facetlimits for different fields. SolrQuery query = new SolrQu...

How to use multiple filters to widen the search in Apachesolr queries

Making a search with Apachesolr, i want to add a couple of filters in hook_apachesolr_prepare_query(&$query). This works fine, except I want the filters to widen the search ('OR'), rather than narrow it ('AND'). For example, if I have 4 nodes of type:A and 3 of type:B that match a search, to filter by type:A and type:B should return 7 ...

Running Solr in read-only mode

I think I'm missing something obvious here. I have to imagine a lot of people open up their Solr servers to other developers and don't want them to be able to modify the index. Is there something in solrconfig.xml that can be set to effectively make the index read-only? Update for clarification: My goal is to use Solr with an existing ...

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

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

How do you determine if apachesolr has returned null results

I am looking to execute some code if apachesolr has returned null results for the search query in a separate module. I am looking to leave the apachesolr module and acquia modules untouched. ...

synonym search using apache solr

I have tried search using Apache SOLR. I have done with the PHP client code for to implement with apache solr. I have indexed using the function solrUpdate and got search results using the funcion solrQuery. now i want to search using synonym search , i.e in previously I ve indexed the title as "money" then, I go to search keyword is "...

Solr stops responding (or slows down to molasses)...(Solr newbie)

Running multi-core Solr under Tomcat 6.0 /Win 2008 Server and ASP.NET queries via SolrNet. One of the cores is huge i.e. ~25 million documents (~20 GB disk-space) and several fields. The other 3 cores are much smaller (few gigs each). After a couple of queries to the large index, Solr slows down dramatically and stops responding i.e. ca...

Drupal facet change layout

Is there any way to change the layout of a facet? I know you can create a file in the template dir named: block-apachesolr_search-[field].tpl.php The problem I am having is that at this stage the html in the block variable has already been created. Is there any way to change the html or just get the elements of the facet? Thanks!! ...

SOLR - How to have facet counts restricted to rows returned in resultset

/select/?q=*:*&rows=100&facet=on&facet.field=category Say I have around a lakh documents indexed. But i return only 100 documents using rows=100. The facet counts returned for category, however return the counts for all documents indexed. Can we somehow restrict the facets to the resultset returned? i.e 100 rows only? ...

How to Highlighting Search Results Using Apache SOLR with PHP code

Hi, I developed search page using SOLR with Tomcat servlet container. Using PHP code I post the search query into solrQuery() function and In this function have defined query parameter as follows. $query = "?q=".trim(urlencode($q)) &version=2.2&start=0&rows=10&indent=on&hl=true&hl.fl=title"; I have passed highlighted "hl=tru...