Hi Felix,
I've had a real busy weekend -- sorry for not getting back sooner. Here is
a running report as I debug:
First, the new indexing system is a complete overhaul so I'm open to
suggestions for improving it. Probably we can do much better on the user
interface. And it is possible we still have some bugs. More problematic, we
don't have a good tutorial yet. But here's the nutshell version:
site.index includes your list of indexing rules
action.index allows you to build and process lists of pages per the various
indexing rules
When you first view it, it is supposed to show you a list of all your
indexing rules. When you select one, it generates a list of all the
relevant pages on your site, and stores that list at site.index.rulename.
It then begins to index your first 25 or 50 pages based on your site.config
settings (indexbatch I think). The site.index.rulename page should contain
the pages not yet indexed. Normally you keep clicking "continue" on
action.index until it says "Index Rulename Complete". The actual indexed
info is stored as an info file at index.rulename. You can watch the index
grow by peeking in on index.rulename as you do action.index.
So here are some things to check:
1. does action.index generate the correct list of indexing rules?
2. when you select a rule and click "build index" does it create the
site.index.rulename page?
3. on the action.index page, you should see next the first 25 or 50 (batch
amount) of pages under "Recently indexed pages:" and the rest under "Pages
still to be indexed:"
5. the index information should be stored as an info file at
index.rulename. Check to make sure it looks right. Once there it can be
accessed via search queries.
6. note the auto index feature is supposed to kick in automatically when
you modify a page. I had to turn that off on my installation as I had too
many pages (pushing 100,000, now) and it was affecting performance. In the
next release it will be a config option.
When I ran all this on a vanilla installation, my first try failed on step
3. The problem was my rule did not include group=test* or group=*. When I
added them it seemed to work properly. To test your rule, cut and paste the
whole rule (after the rulename: ) and paste it into a search function to
see if it generates the page list you want. ie
[(search group=test* type=-{zones} mode=text)]
Second, I discovered index rules can't take variables. Might be able to
change that in the future, but for now you need to write out the zones and
systempages to work. My index ended up including side and header pages.
With those two tweaks, everything worked fine and I generated the correct
index.rulename pages.
To get the output, I put this in my search function and it promptly
generated the right results.
[(search query=rulename (or query=index.rulename) text=elephants)]
While I'm at it, I thought I would mention there is an index command and an
index function. Both need some work. The index function can take a page
name or a csv list of pages, or if blank, will just index a few pages from
each site.index.rulename. You can't specify an index rule however. The
index command expects a rule name and processes that list, or alternately,
if blank--indexes a few pages from each site.index.rulename page. I think I
need to change both of these so they 1) can take a page name or csv list of
names, or 2) take a rule=parameter to define a specific rule. or 3) if
blank, process general indexing as now.
If anyone cares to copy this (better yet, rewrite it) and put it in the
boltwire docs area that would be helpful!
Let me know if this helps you as you debug yours Felix! Or if you are still
stuck feel free to reply back... My apologies for being so wordy. It was a
rush job
Cheers,
Dan
On Thu, May 1, 2014 at 3:13 AM, jf <[email protected]> wrote:
> Hi Dan - I'm having trouble getting search & index to work. Have upgraded
> to 4.09, still not succeeding...
>
> I've put no overriding action.search page in pages dir, so it should use
> default system search. And this is what site.index looks like:
>
> links: mode=links
> test: group=test* type=-{zones} mode=text
> forum: group=forum* type=-{zones} mode=data
> legend=time,by,who,comments,title
> site: group=* mode=text exclude={systempages} type=-{zones}
>
> if I do &action=index on some page, indexing is called up, and I can
> select an index to be built. This looks like it is working, since it adds
> an index.site page to pages dir (after adding group=* to 'site').
> However, if I then enter some text to seek for using the search action, I
> just get returned to the current page.
>
> What is it I'm missing?
> Thanks.
> Felix
>
> --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.