Using ColdFusion 2016, does anyone know if its possible to include a date when using cfindex, and then search within date ranges using cfsearch? So I could index documents, including their upload date to the collection, and then say search only documents uploaded in 2019?
edit
I've managed to get a date into the collection, using a custom field of type date/_dt. Now how to search it ...
Related
I have a list in Microsoft List that is used as a tracking tool for work management. We have status, category of issue, people to be assigned, due date.
To track KPIs, we need to have some sort of export (csv) with the infos that can be found in version history of each item of the list.
For instance, we need to know how many items have been in status "published" in november, how many in october, etc.
How many have been modified by "..." and by "..."
And the most important indicator would be the number of days until an item has been open -> closed. By "open" I mean created. By "closed" I mean the last modification done on it .
NB : We don't have Power Automate but we can use Power BI
I tried the basic CSV export, it only has the column from my list, nothing else.
I found an article that can export SharePoint List Item Version History to Excel using PowerShell.The reference code in the article below can export the creator and creation time of each version, and you can also add other fields as needed.
Reference: https://www.sharepointdiary.com/2014/06/sharepoint-version-history-export-to-excel.html
I'm currently using this REST service to retrieve list items:
_api/lists/getbytitle('List Title')/items?$oderby=DueDate
Is it possible to use some query parameter to filter the items newer/older than a specific date, using the standard Modified date field?
I found the answer myself: using the $filter parameter with OData expression
/items?$filter=Modified gt datetime'2014-11-27T12:00:00.000Z'
I need to get the item from a list that was created today.
Basically an item is created once a day in a list at any time. What I need is to be able to get that item using rest api.
http://server.domain.com/_api/web/lists/GetByTitle('MyList')/items/?$filter=Created eq datetime('DD.MM.YYYY')
But this doesn't work ...
Any idea how I can get the today created item using rest?
The datetime function should be used like datetime'01.03.2013'
http://server.domain.com/_api/web/lists/GetByTitle('MyList')/items/?$filter=Created eq datetime'01.03.2013'
i want to group the output i am getting through date type. But i am storing the data in solr using datetime type. Date Format i am using is
Date format :: "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
For e.g. Date is stored in solr as "2013-03-01T20:56:45.000+00:00"
What i want as output is count of dates :: for .e.g.
Date1:: "2013-03-01T20:56:45.000+00:00"
Date2:: "2013-03-01T21:56:45.000+00:00"
Date3:: "2013-03-01T22:56:45.000+00:00"
Date3:: "2013-03-02T22:56:45.000+00:00"
Date4:: "2013-03-02T23:56:45.000+00:00"
So i want the output as two columns ::
Date Count
2013-03-01 3
2013-03-02 2
Here is the code i am using
String url = "http://192.168.0.4:8983/solr";
SolrServer server = new HttpSolrServer(url);
SolrQuery query = new SolrQuery();
query.setQuery("*:*");
query.addFilterQuery("sessionStartTime:[2013-03-01T00:00:00Z TO 2013-03-04T24:00:00Z]");
query.add("group", "true");
query.add("group.field","uniqueId"); // uniqueId is grouping the data
query.add("group.main","true");
query.setRows(9999);
QueryResponse rs=server.query(query);
Iterator<SolrDocument> iter = rs.getResults().iterator();
Help is appreciated.
I know that this is an older question but I am working on something related to this so I thought I would share my solution. Since you are using grouping, rs.getResults() will likely be null. After reading through the SolrJ API and doing some testing on my end, you will find that the results are indeed grouped as you want them to be. To access them, create a variable like such:
List<Group> groupedData = rs.getGroupResponse().getValues().get(0).getValues()
Note that Group is the class org.apache.solr.client.solrj.response.Group
Then, iterate through groupedData, usinig groupedData.get(i).getResult() to get a SolrDocumentList of results for each grouped value. In your example, (assuming the data is ordered as you said it would be), groupedData.get(0) would give you a SolrDocumentList of the three matches that have the date 2013-03-01.
I understand that this is quite the chain of method calls but it does end up getting the results to you. If anyone does know a faster way to get to the data, please feel free to let me know as I would like to know as well.
Refer to the API for GroupResponse for more information
Note that this answer is working on Solr 5.4.0
The output that you are trying to achieve, I believe is better suited to Faceting over grouping. Check out the documentation on Date Faceting more specifically and SolrJ fully supports faceting, see SolrJ - Advanced Usage. For an introduction to Faceting I would recommend reading Faceted Search with Solr
Hi I have a document library, each document has a start and end date.
I want to be able to search for a document if applies to a particular date. FOr example, Document 1 starts on March 1st and ends on March 5th.
I want this document to appear in the list if I search for all documents that apply to March 3rd as an example.
Any help would be greatly appreciated :)
You haven't really given enough details but I am assuming that you're just looking for a view to do this.
You would create a view that has the following filters
Doc Start Date <= 3/3/2011
Doc End Date >= 3/3/2011
(You could use [Today] in filters instead of 3/3/2011 if you want view any documents that span the current date.)