function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
veeru_pariveeru_pari 

Total number of records retrieved by a single SOSL query

Hi,

This is VeeraiahChowdary,

 

My query is how to get the count of    Total number of records retrieved by a single SOSL query  per page .this is one of governor limit .For this i dont find the inbuilt methods as part of limits class.so anyone please help me on this.

 

Thanks,

Veeraiahchowdary

Bhawani SharmaBhawani Sharma
Limits.getLimitQueryRows: This will give you the total count of records can be queried in one request.
Limits.getQueryRows: This will give you the total count of records has been queried in one request.
veeru_pariveeru_pari

but that are for soql but my req is for SOSL

veeru_pariveeru_pari

hi,

I want to get the no of records retreived by a single sosl query to displayed on the VF page.example if write some sosl queries in apex page it has to get the records .for soql there is a method called ,getSoslQueries in Limits classsimilarly  i want to get the no of records   when a sosl query is run(i mean the count).Means i need to get the governor limit also