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 8634761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:48:03+00:00 2026-06-12T09:48:03+00:00

I have implemented a search form in Zend ( SOLR in the backend ).

  • 0

I have implemented a search form in Zend ( SOLR in the backend ).
To offer the user some more control I have added a multicheckbox for applying certain content filters.

The thing is in the following steps ( bear with me here ):

  1. The request is made, something similar to /search/?q=bla&filter=1

  2. The request is rewritten in the controller to be restful to: /search/query/bla/filter/1

  3. If the user removes filter 1, adds filter 2 and submits the request becomes: /search/query/bla/filter/1?q=bla&filter=2

How would I properly create a restful request using that. The problem being here that using the getRequest() functionality of the Controller I will also get a value for the first filter, meaning I have no way of knowing which one I can discard.


So, to summarize:
How do I properly use a Zend_Form to create RESTful HTTP requests

  • 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-12T09:48:05+00:00Added an answer on June 12, 2026 at 9:48 am

    IMO, you’re trying to solve an inexistent problem. You’re working on aesthetics not RESTful compliance.

    REST tells that you need to identify resources, not that you’re resource links should look nice (well in a way). But since your search is a kind of a filter, it is totally acceptable to use a QueryParam.

    I think, your use of the term “search” within REST is wrong. Search is not a resource (at least in your case).

    You should either hide the search implementation by doing something like:

    GET /articles?q=foo&filter=1
    

    The way you construct your filters criteria should not matter.

    Or you may want to define a “search” as a resource (SO actually does that IIRC).

    POST /articles/search/
    "{
      "query" : "foo",
      "filter" : "bar"
    }"
    

    Would result in something like:

    Location: /articles/search/a125f41fbc135d
    

    Where a125f41fbc135d is the identifier of the search which would be used to identify the search resource.

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

Sidebar

Related Questions

I have a simple form on a view page, implemented as a user control,
I have implemented solr search for my rails application. I have indexed the fields
Currently I have implemented a Javascript Ajax search where if user types a city
I have a search form regarding property search having some elements on which search
I have a search form. If the user makes a typo like ager instead
I have implemented search by map function on my web-site. The map have some
In my website I have implemented search feature using full-text search. It works fine
I have implemented the search method for a UITableView populate from a NSArray (mylist):
I have implemented a UISearchDisplayController that allows users to search a table. Currently the
I have a simple rails search implemented in my app. At the time I

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.