What is the advanced search syntax to include Page Number in an advanced search? The use case is to search text in an entire folder, but only search each document's page "1" for that text.
Question
Question
Advanced Search Syntax Criteria for Page Number
Replies
I'd like to give this question a bump, as I have a similar need. We have some documents that did not separate properly, so I want to search for some text from the separator sheet on a page number > 1 (so, if the separator sheet is in the document but is not page 1).
I don't believe there is a way to specify this. There is syntax for specifying the number of pages in the document, but those clauses would be independent of the text clauses. Once the search is run, the context hits will tell you what page the text appears on, but if there are a lot of results you might need an SDK program to do the filtering for you.
Hi Brian,
What is the syntax for specifying the number of pages in the document? For example, I want the search to take users to page 50 of a 100-page document or whatever page the users specify in the query.
Regards,
It seems like you are talking about 2 different things. The first is the search syntax for providing a criterion about the number of pages in the document. That is something like: {LF:pagecount = "10"} . Adding this to a query will restrict the result list to those documents with the specified number of pages, and you can also use less than or greater than in place of equals. But as I said in the initial answer, this is strictly about the number of pages in the document, and has no relation to the page numbers of the hits for the text (if the user has specified a text search clause).
The second is how to open a document to a specific page. If the user runs a text search and double-clicks on a context hit, the document will open to that page without any configuration required. If you need to do this yourself, you would add a "page=10" parameter to the fragment part of the url for DocView.aspx. You can see it there on the initial load from the double-click event. I'm not sure in what context you would do this, unless you are trying to run your own search and integrate with the Web Access document viewer.
Hi Brian,
The second scenario is what I am after.
Using Advanced search query 1 takes me to the 18-page document, while query 2 shows no result. Any Idea?
Query 1 ={[]:[Drawing Number] = "D6670"} & {LF:templateid=81}
Query 2= {[]:[Drawing Number] = "D6670"} & {[]:[Page] = "10"} & {LF:templateid=81}
I know this is an old thread but I too would like to be able to specify this. We have occasions where the slip sheets do not get removed properly and thus only want to search where they are on page 1 of the document.