cancel
Showing results for 
Search instead for 
Did you mean: 

Search for range of numbers on a form

d_franz
Champ on-the-rise
Champ on-the-rise
I have created a form for my individual Aspect. In this Aspect I have created some number fields ("<type>d:int</type>").

Now I want to search for this fields on a range based way. But command such as "0..5" or "[0 TO 5]" doesn't work.

Is there anything I have to configure or to install to have this feature?
5 REPLIES 5

jpotts
World-Class Innovator
World-Class Innovator
Can you be more specific about which search syntax you are trying to use, where you are trying to execute the search, and the specific query you are executing?

Just to give you something to compare to, when I drop a bunch of images into the Share document library, I can then successfully find them in the Node Browser using this Alfresco FTS query:

@exif\:pixelYDimension:[200 to 900]

The exifSmiley TongueixelYDimension property is defined as type d:int on the exif:exif aspect.

See http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#Ranges for more examples.

Jeff

d_franz
Champ on-the-rise
Champ on-the-rise
I have a form to search that is similar to my forms for putting in all meta data. If I search for the exact values I putted in I can find everything.
But for the most files I want search them with a range.
For example I have a field where I put in a Temperature. Now I want to search for a Temperature range from 10 to 20 degrees to find for example a file with the applied temperature of 15 degrees.

My search form looks like this:
http://s21.postimg.org/4a7tn14qv/Unbenannt.png


How I have to define the search string in this fields to get result?
I want so search for number and date ranges.

Thanks in advance

d_franz
Champ on-the-rise
Champ on-the-rise
Is it possible to define a field in a search form to search a time window on a meta-data propertiy of type "d:datetime"??

Many thanks in advance!

rjohnson
Star Contributor
Star Contributor
There is a form control called daterange.ftl that will allow you to do this.

d_franz
Champ on-the-rise
Champ on-the-rise
Thank You very much!!! That exactly what I was looking for.