DtSearch flag dtsSearchSelectMostRecent is based on what data - dtsearch

When using dtSearch, the search flag dtsSearchSelectMostRecent limit the result to the most recent results. I've not found the information on what data the most recent is based: the date of the document or the date of indexation.

When selecting the documents to return (up to the MaxFilesToRetrieve limit in the SearchJob), select the most recent documents rather than the best-matching documents. Cannot be used with dtsSearchDelayDocInfo, because the document date for each document is needed.

Related

Limiting Azure cognitive search results based on a condition

Is there a way to limit azure cognitive search results based on a condition for e.g.:
if content.length < 500:
I have several thousand pdf files indexed and many files are completely useless have less content. I don't want those files to show up in the search response.
I cannot delete them manually as these files are in large number.
Any help would be highly appreciated.
If you're using a blob indexer to populate your search index you can add a new/additional index field and populate it with metadata_storage_size. Be sure that this "size" field is configured as filterable, and you should be able to use that field to filter out small PDFs.
https://learn.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage#how-azure-cognitive-search-indexes-blobs
If you're populating the data in your search index manually, I think you'll still need a field to hold the document's size, and will need to populate it yourself.

How can I fetch the most recently added document using mongoose?

I am trying to fetch the most recent document in MongoDB using mongoose.
Every method I have tried so far gives me the oldest document on record.
I've tried sorting by date, and created_at
Tried both ascending and descending, both return the oldest document.
https://paste.heckyou.ml/odofomasel.js
The value returned should be the most recently added document.
This will give you one last document for a collection
db.collectionName.findOne({}, {sort:{$natural:-1}})
$natural:-1 means order opposite of the one that records are inserted in.
mongo CLI syntax is: db.collectionName.find({}).sort({$natural:-1}).limit(1)

filter view on modification date

I found the way to filter a view by creation date ;
In the Search I put for example :
return "[_CreationDate] >" + fromDate +"'";
Is their a similar way to only get the documents from a certain modification date in my view?
The page in Domino Help entitled "How can I refine a search query using operators?" is very useful.
[_RevisionDate] is the internal field you want.
If using replicas, please note this gives the date the document was modified, not the date it was modified in this file (i.e. the date the updated document hit this replica).

How to get data from report in netsuite using webservices request?

I want to get data from Reports-->sales-->Sales by Item Summary in netsuite.Can some one help me how to do this? Which type of record i have to request?
i´m having sales order report contains item,desc,qty and total revenue fields.i need to get these fields values to my application.How to do this integration? Is it possible can we get data from report like standard objects?
If you can get the same result using a saved search - create that saved search. Using a webservice call you can use 'Search' object to get the result from that saved search (parameter supplied is the value from saved search in the UI).

How to get the date from and to fields of filter in prestashop controller

I want get the date from and date to field, selected in date filter search. Need these fields to get PDF report sorted on search filed bases.
Just take a look at some of the core stats* modules, where this is automatically supported.

Resources