SoLR - How to filter out records which do not have the field value for field listed in SORT?


In SoLR, We can set sortMissingLast=true on a field in the schema. If the SORT is on this field, it will to push the results which have missing field values to the end.

Is there a way to filter out the results whose sort field values are missing? Please advise.


If you want to restrict your query to documents that only have a certain field set, add the following parameter to your query:

sort_field_name:[* TO *]

This will limit the query to only those documents where the sort field exists.


  • Mixing Solr range function with additional parameters
  • Lucene .NET result subsets
  • How to autocomplete across multiple fields in Solr
  • Is it possible to use Microsoft 2013 sharepoint search server as my search engine for my site
  • Nested projects in multiproject visual studio templates
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • Retaining data after updating application
  • Examples of how to a STS in .Net 4.5 using WCF
  • Can't remove headers after they are sent
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • Is playing sound in Javascript performance heavy?
  • Retrieve list of sent friend requests from friend_request FQL table
  • How can I sort a a table with VBA with given text condition?
  • MongoDb aggregation
  • ActiveRecord query for a count of new users by day
  • Is it possible to access block's scope in method?
  • Using variable in a value field in jMeter
  • Linq Objects Group By & Sum
  • Insert into database using onclick function
  • Retrieving value from sql ExecuteScalar()
  • Knitr HTML Loop - Some HTML output, some R output
  • Can a Chrome extension content script make an jQuery AJAX request for an html file that is itself a
  • Convert array of 8 bytes to signed long in C++
  • KeystoneJS: Relationships in Admin UI not updating
  • How to set the response of a form post action to a iframe source?
  • Hits per day in Google Big Query
  • Understanding cpu registers
  • Why joiner is not used after Sequence generator or Update statergy
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Change div Background jquery
  • File not found error Google Drive API
  • Qt: Run a script BEFORE make
  • Is it possible to post an object from jquery to bottle.py?
  • Checking variable from a different class in C#
  • Does armcc optimizes non-volatile variables with -O0?
  • Recursive/Hierarchical Query Using Postgres
  • Running Map reduces the dimensions of the matrices
  • reshape alternating columns in less time and using less memory
  • How to push additional view controllers onto NavigationController but keep the TabBar?