EPrints Technical Mailing List Archive
Message: #06447
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- From: "Brian D. Gregg" <bdgregg@pitt.edu>
- Date: Tue, 18 Apr 2017 14:18:18 +0000
Thanks Adam. I'll look into the full_text_status field. I could have sworn I looked into that once before, but it was a long time ago (and many projects ago). So I'll give it a whirl once more. If this works as needed
then I think we'll go from there. Thanks again. -Brian. From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Adam Field Hi Brian Virtual fields have no value stored in the database. Therefore, you can't search on them. The virtualwithvalue field was created to allow virtual fields to write back to the non-virtual
fields they are based on, which can be useful in some situations. From your code below, I believe that calling set_value will cause a stack overflow, as $eprint->set_value('fulltext', 'TRUE') will make a call to $eprint->set_value('fulltext', 'TRUE') until
the computer runs out of stack space. In a default eprints repository, there's already a field for this -- full_text_status. Try adding that to your search configuration and see what happens :) It's managed as an automatic
field, rather than a virtual one, which sounds like what you need. There's a training video for that, too: MailScanner has detected a possible fraud attempt from "na01.safelinks.protection.outlook.com" claiming to be https://wiki.eprints.org/w/Training_Video:Automatic_Fields See: ...as an aside, I've always thought that the behaviour of this field is wrong. It should be a multiple field, so that we can distinguish between items that have only restricted documents,
items that have only public documents and items that have both. -- Adam On 13 Apr 2017, at 18:10, Brian D. Gregg <bdgregg@pitt.edu> wrote:
|
- References:
- [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- From: "Brian D. Gregg" <bdgregg@pitt.edu>
- Re: [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- From: Adam Field <adam@adamfield.net>
- [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- Prev by Date: Re: [EP-tech] Linkcheck
- Next by Date: [EP-tech] Sub types on fields
- Previous by thread: Re: [EP-tech] Virtual Field derived by SQL query or code and available for searching.
- Next by thread: [EP-tech] Installing ePrints 3.3.15 on CentOS7 error
- Index(es):