import React from 'react'; import FormGroup from 'react-bootstrap/es/FormGroup'; import Button from 'react-bootstrap/es/Button'; import InputGroup from 'react-bootstrap/es/InputGroup'; import SearchTypeahead from '../SearchTypeahead'; // Header.SearchForm export default class SearchForm extends React.Component { constructor(props) { super(props); this.crowi = window.crowi; // FIXME this.state = { searchError: null, }; this.onSearchError = this.onSearchError.bind(this); this.onChange = this.onChange.bind(this); } componentDidMount() { } componentWillUnmount() { } onSearchError(err) { this.setState({ searchError: err, }); } onChange(selected) { const page = selected[0]; // should be single page selected // navigate to page if (page != null) { window.location = page.path; } } getHelpElement() { return
| keyword | 記事名 or カテゴリ or 本文にkeywordを含む |
|---|---|
| title:keyword | 記事名にkeywordを含む |
| a b | 文字列aとbを含む(スペース区切り) |
| -keyword | 文字列keywordを含まない |