Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8917209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:25:57+00:00 2026-06-15T05:25:57+00:00

I need to develop a system where different kind of content blocks are displayed.

  • 0

I need to develop a system where different kind of “content blocks” are displayed. First I have three systems delivering blocks of data (one of them is a blog, another one a listing of events, a third one something custom). This might get extended later on in the project.

The idea is to have a long list, ordered at first on published date (so chronologically). However, some types might have a little bit more priority, so for example events are showed relatively higher in the list than blog posts with a factor x.

Then I need some additional sorting, like blog articles might be “featured” so they are also given a bit more priority, say a factor y. The last thing is content blocks might be marked “sticky” so they keep at the top of the list all the time.

Because of the advanced technology behind solr and all the query options, I was thinking to use solr as an engine for this listing of blocks. Is something like that possible, or is another technology more suitable for this?

My preference for solr is also because it would be relatively easy to inject new content into the index. But how I have to define a query to return the complete (paginated) index sorted by date is something I have to figure out as well.

As a last point: the application will be a php (Zend Framework 2) project so preferable it must work directly with php or by a client written for php (eg, SolrClient for solr). To formulate it as a question: what might be a good technology for above described requirements and is solr a good one for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:25:58+00:00Added an answer on June 15, 2026 at 5:25 am

    Have a string type field named doctype which can take values blog, event and anything in future.


    &bq=cat:electronics^5.0
    &bq=sponsored:true
    &bq=doctype:blog^5.0
    

    Which means the score of documents of field doctype and value blog gets boosted. The 5.0 is boost weight, useful when one condition is more important than another.
    Adapted from this http://wiki.apache.org/solr/ExtendedDisMax#Examples


    And from http://wiki.apache.org/solr/SolrRelevancyFAQ see 11.1 for promoting content to the top; and 12 for boosting according to values of something.


    And use asynchronous HTTP calls if you want to make multiple queries to render a single page. If you make 3 queries each of 333ms one after another, your page will take a second to load. But with 3 asynchronous queries, it will be more like 340ms. But it may be tough in PHP!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to develop an application which will have three different types of users,
I have an architectural question, we need to develop information system with two frontends:
I need to develop a winform with a treeview menu, localizable and with different
I have to develop a basic inventory system, and my client wants to see
We currently have a custom inventory system used to track different assets. The items
I have a messy Delphi 7 legacy system to maintain and develop. I am
I need to develop a web chat with one advanced feature: grouping chat -
I am planning to develop an mobile app (my first one) for multiple operation
I need to develop an ordering system for a client that works with tablet
I need to develop a system which accepts orders and returns confirmation. Orders could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.