First of all, test version of Maxigallery search is simply not what people want to see. =)
You are right. To avoid a search in a test version Maxigallery document simply set the document, not searcheable. The search don’t search in non-searcheable document. In the next version I will add to avoid hidden images from a gallery
I understand that Maxigallery uses one document, so results of search are as from one document.
Yes. As tv values or jot comment, for one document you could have
n maxigallery images; This a relationship
1-n between document and maxigallery images. In MODx you have a document and linked elements like images, jot comments or TV values.
With the version 1.8 for each document, all the image titles are concatened to create a
concatened field. And the search occurs with this field. Same thing with "descr" field.
So if you do a search with "cat dog" with &advsearch=`allwords` you will get a gallery document with images with title or description which contains "cat" AND "dog". As the searchword is found in the concatened field gal_title or gal_description, the words could be on several different images. e.g: one image of cat, the other of a dog.
With version 1.8, the goal of the search is to find a document, not an image.
This is the same thing with jot comments and TVs.
- TVs -
With a TV "Author" containing "Jack London" and another TV "Editor" containing "Penguin press", if you search "london penguin" with &advsearch=`allwords` you need to concatenate all the TV values before to do the search.
Otherwise you will never find the document linked with these two TVs.
In the next version I think to limit the concatenation to a specific set of Tvs, I will add a new optional parameter : concatened=`separated list of tv names`. By default all the TVs values will be concatened.
-JOT-
Regarding jot, do we search a specific comment or a document which contains comments with the searched words ?
I think comments should be like TVs. When you search "feedback laptop" with &advearch=`allwords`, you need find a document if these two words are on separate comments.
In this case the search result display an extract around the searchterm of the concatened comments.
For Maxigallery, to change the current feature and find an image rather than a document, the easiest way is to work not on concatened field but and native field. So if an image has a title "dog and cat", you get it. And in this case you could with the appropriate placeholder, simply display in your search result template, the name of the document where the image has been found, the image title, the image description and the image.
With this solution you will get as many search results as images found. Not one document with the images found (if they are in the same gallery).
So, to summarize, I suggest to use concatened field with jot and tv and single native field with maxigallery.